Skip to content

Commit 21e9fcc

Browse files
committed
Reference fixes
Celeryworker fix: Recommended `hatch run production:python /app/app/celeryworker_pre_start.py` does not work. Use `hatch run python /app/app/celeryworker_pre_start.py` instead. Frontend: Weird issue with latest version of Vite: whythawk/full-stack-fastapi-postgresql#35 Requires changing of `/app` to *any other directory name*. This is a Docker/Vite issue and may be fixed in a future version of Vite.
1 parent c4b39cd commit 21e9fcc

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM node:18.17.0 AS build
22
ENV NODE_ENV=development NITRO_HOST=${NUXT_HOST:-0.0.0.0} NITRO_PORT=${NUXT_PORT:-3000} NUXT_TELEMETRY_DISABLED=1
3-
COPY . /app
4-
WORKDIR /app
3+
COPY . /frontend
4+
WORKDIR /frontend
55
RUN yarn install --frozen-lockfile --network-timeout 100000 --non-interactive
66
RUN yarn build --standalone
77
EXPOSE ${NUXT_PORT}
@@ -33,7 +33,7 @@ ARG VEE_INT_VERSION=^4.7.3
3333
ARG VEE_RULES_VERSION=^4.7.3
3434
ARG QR_CODE_VERSION=^3.3.3
3535
ENV NODE_ENV=production NITRO_HOST=${NUXT_HOST:-0.0.0.0} NITRO_PORT=${NUXT_PORT:-3000} NUXT_TELEMETRY_DISABLED=1
36-
WORKDIR /app
36+
WORKDIR /frontend
3737
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/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}
3838
COPY --from=build /app/.nuxt ./.nuxt
3939
COPY --from=build /app/api ./api
@@ -53,4 +53,5 @@ COPY --from=build /app/app.vue ./
5353
COPY --from=build /app/nuxt.config* ./
5454
COPY --from=build /app/tailwind.config* ./
5555
COPY --from=build /app/tsconfig.json ./
56-
CMD ["node", ".output/server/index.mjs"]
56+
ENTRYPOINT [ "yarn" ]
57+
CMD [ "start" ]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"build": "nuxt build",
55
"dev": "nuxt dev",
66
"generate": "nuxt generate",
7-
"start": "node .output/server/index.mjs",
7+
"start": "nuxt start",
88
"preview": "nuxt preview"
99
},
1010
"devDependencies": {

0 commit comments

Comments
 (0)