11FROM 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
33COPY . /app
44WORKDIR /app
55RUN yarn install --frozen-lockfile --network-timeout 100000 --non-interactive
@@ -33,10 +33,12 @@ ARG VEE_VERSION=^4.7.3
3333ARG VEE_INT_VERSION=^4.7.3
3434ARG VEE_RULES_VERSION=^4.7.3
3535ARG 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
3737WORKDIR /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}
3939COPY --from=build /app/.nuxt ./.nuxt
40+ COPY --from=build /app/.output/ ./.output
41+ COPY --from=build /app/api ./api
4042COPY --from=build /app/assets ./assets
4143COPY --from=build /app/components ./components
4244COPY --from=build /app/content ./content
@@ -45,13 +47,12 @@ COPY --from=build /app/layouts ./layouts
4547COPY --from=build /app/middleware ./middleware
4648COPY --from=build /app/pages ./pages
4749COPY --from=build /app/plugins ./plugins
48- COPY --from=build /app/static ./static
50+ COPY --from=build /app/public ./public
4951COPY --from=build /app/stores ./stores
5052COPY --from=build /app/utilities ./utilities
5153COPY --from=build /app/.env ./
5254COPY --from=build /app/app.vue ./
5355COPY --from=build /app/nuxt.config* ./
5456COPY --from=build /app/tailwind.config* ./
5557COPY --from=build /app/tsconfig.json ./
56- ENTRYPOINT ["yarn" ]
57- CMD ["nuxt-start" ]
58+ CMD ["node" , ".output/server/index.mjs" ]
0 commit comments