fix dockerfile
This commit is contained in:
parent
e59c210ef4
commit
12e3cf2f85
1 changed files with 2 additions and 1 deletions
|
@ -4,16 +4,17 @@ WORKDIR /usr/src/app
|
|||
FROM base AS install
|
||||
RUN mkdir -p /temp/dev
|
||||
COPY package.json bun.lock /temp/dev
|
||||
COPY patches/ /temp/dev/patches/
|
||||
RUN cd /temp/dev && bun install --frozen-lockfile
|
||||
|
||||
RUN mkdir -p /temp/prod
|
||||
COPY package.json bun.lock /temp/prod/
|
||||
COPY patches/ /temp/prod/patches/
|
||||
RUN cd /temp/prod && bun install --frozen-lockfile --production
|
||||
|
||||
FROM base AS prerelease
|
||||
COPY --from=install /temp/dev/node_modules node_modules
|
||||
COPY . .
|
||||
# RUN echo "SESSION_SECRET=$(head -c 64 /dev/random | base64)" > .env
|
||||
|
||||
ENV NODE_ENV=production
|
||||
ENV SERVER_PRESET=bun
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue