Fix Dockerfile

This commit is contained in:
Jesse Wierzbinski 2023-12-07 07:45:07 -10:00
parent 5e42784d6d
commit a2af80b680
No known key found for this signature in database

View file

@ -19,9 +19,6 @@ RUN mkdir -p /temp/prod
COPY package.json bun.lockb /temp/prod/ COPY package.json bun.lockb /temp/prod/
RUN cd /temp/prod && bun install --frozen-lockfile --production. RUN cd /temp/prod && bun install --frozen-lockfile --production.
# Build Vite in pages
RUN bun vite:build --mode production
# copy production dependencies and source code into final image # copy production dependencies and source code into final image
FROM base AS release FROM base AS release
@ -30,6 +27,9 @@ RUN mkdir -p /app
COPY --from=install /temp/prod/node_modules /app/node_modules COPY --from=install /temp/prod/node_modules /app/node_modules
COPY . /app COPY . /app
# Build Vite in pages
RUN bun vite:build --mode production
LABEL org.opencontainers.image.authors "Gaspard Wierzbinski (https://cpluspatch.dev)" LABEL org.opencontainers.image.authors "Gaspard Wierzbinski (https://cpluspatch.dev)"
LABEL org.opencontainers.image.source "https://github.com/lysand-org/lysand" LABEL org.opencontainers.image.source "https://github.com/lysand-org/lysand"
LABEL org.opencontainers.image.vendor "Lysand Org" LABEL org.opencontainers.image.vendor "Lysand Org"