mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
Fix Dockerfile
This commit is contained in:
parent
5e42784d6d
commit
a2af80b680
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue