1
1
FROM node:16.18.1 AS build
2
- ENV NODE_ENV=development NUXT_HOST =${NUXT_HOST:-0.0.0.0} NUXT_PORT =${NUXT_PORT:-3000} NUXT_TELEMETRY_DISABLED=1
2
+ ENV NODE_ENV=development NITRO_HOST =${NUXT_HOST:-0.0.0.0} NITRO_PORT =${NUXT_PORT:-3000} NUXT_TELEMETRY_DISABLED=1
3
3
COPY . /app
4
4
WORKDIR /app
5
5
RUN yarn install --frozen-lockfile --network-timeout 100000 --non-interactive
@@ -33,10 +33,12 @@ ARG VEE_VERSION=^4.7.3
33
33
ARG VEE_INT_VERSION=^4.7.3
34
34
ARG VEE_RULES_VERSION=^4.7.3
35
35
ARG QR_CODE_VERSION=^3.3.3
36
- ENV NODE_ENV=production NUXT_HOST =${NUXT_HOST :-0.0.0.0} NUXT_PORT =${NUXT_PORT:-3000 } NUXT_TELEMETRY_DISABLED=1
36
+ ENV NODE_ENV=production NITRO_HOST =${NITRO_HOST :-0.0.0.0} NITRO_PORT =${NITRO_PORT:-80 } NUXT_TELEMETRY_DISABLED=1
37
37
WORKDIR /app
38
- RUN yarn add nuxt@${NUXT_VERSION} @nuxt/content@${NUXT_CONTENT_VERSION} tailwindcss@${TAILWINDCSS_VERSION} autoprefixer@${AUTOPREFIXER_VERSION} postcss@${POSTCSS_VERSION} @tailwindcss/aspect-ratio@${ASPECT_RATIO_VERSION} @tailwindcss/forms@${FORMS_VERSION} @tailwindcss/line-clamp@${LINE_CLAMP_VERSION} @tailwindcss/typography@${TYPOGRAPHY_VERSION} @headlessui/vue@${HEADLESSUI_VERSION} @heroicons/vue@${HEROICONS_VERSION} @pinia/nuxt@${PINIA_VERSION} @pinia-plugin-persistedstate/nuxt${PINIA_PERSISTED_VERSION} vee-validate@${VEE_VERSION} @vee-validate/i18n${VEE_INT_VERSION} @vee-validate/rules${VEE_RULES_VERSION} qrcode.vue${QR_CODE_VERSION}
38
+ RUN yarn add nuxt@${NUXT_VERSION} @nuxt/content@${NUXT_CONTENT_VERSION} tailwindcss@${TAILWINDCSS_VERSION} autoprefixer@${AUTOPREFIXER_VERSION} postcss@${POSTCSS_VERSION} @tailwindcss/aspect-ratio@${ASPECT_RATIO_VERSION} @tailwindcss/forms@${FORMS_VERSION} @tailwindcss/line-clamp@${LINE_CLAMP_VERSION} @tailwindcss/typography@${TYPOGRAPHY_VERSION} @headlessui/vue@${HEADLESSUI_VERSION} @heroicons/vue@${HEROICONS_VERSION} @pinia/nuxt@${PINIA_VERSION} @pinia-plugin-persistedstate/nuxt@ ${PINIA_PERSISTED_VERSION} vee-validate@${VEE_VERSION} @vee-validate/i18n@ ${VEE_INT_VERSION} @vee-validate/rules@ ${VEE_RULES_VERSION} qrcode.vue@ ${QR_CODE_VERSION}
39
39
COPY --from=build /app/.nuxt ./.nuxt
40
+ COPY --from=build /app/.output/ ./.output
41
+ COPY --from=build /app/api ./api
40
42
COPY --from=build /app/assets ./assets
41
43
COPY --from=build /app/components ./components
42
44
COPY --from=build /app/content ./content
@@ -45,13 +47,12 @@ COPY --from=build /app/layouts ./layouts
45
47
COPY --from=build /app/middleware ./middleware
46
48
COPY --from=build /app/pages ./pages
47
49
COPY --from=build /app/plugins ./plugins
48
- COPY --from=build /app/static ./static
50
+ COPY --from=build /app/public ./public
49
51
COPY --from=build /app/stores ./stores
50
52
COPY --from=build /app/utilities ./utilities
51
53
COPY --from=build /app/.env ./
52
54
COPY --from=build /app/app.vue ./
53
55
COPY --from=build /app/nuxt.config* ./
54
56
COPY --from=build /app/tailwind.config* ./
55
57
COPY --from=build /app/tsconfig.json ./
56
- ENTRYPOINT ["yarn" ]
57
- CMD ["nuxt-start" ]
58
+ CMD ["node" , ".output/server/index.mjs" ]
0 commit comments