pushing the dockerfile since building locally seems to be broken

This commit is contained in:
Chris Kruining 2024-11-18 11:38:08 +01:00
parent 10255b7c72
commit a159138162
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
2 changed files with 3 additions and 2 deletions

View file

@ -9,6 +9,7 @@ RUN cd /temp/dev && bun install --frozen-lockfile
RUN mkdir -p /temp/prod
COPY package.json bun.lockb /temp/prod/
RUN cd /temp/prod && bun install --frozen-lockfile --production
RUN echo "SESSION_SECRET=$(openssl rand -base64 15)" > .env
FROM base AS prerelease
COPY --from=install /temp/dev/node_modules node_modules
@ -28,5 +29,5 @@ COPY --from=prerelease /usr/src/app/.vinxi .vinxi
COPY --from=prerelease /usr/src/app/.output .output
USER bun
EXPOSE 3000/tcp
EXPOSE 3000
ENTRYPOINT [ "bun", "run", "start" ]