mirror of
https://github.com/tcgdex/cards-database.git
synced 2025-06-17 01:49:19 +00:00
feat: Add Prismatic Evolutions (#637)
This commit is contained in:
17
Dockerfile
17
Dockerfile
@ -4,28 +4,31 @@ FROM docker.io/oven/bun:1-alpine AS build
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# Add git as it is used to fetch updated times
|
||||
RUN apk add git &&\
|
||||
git config --global safe.directory '*'
|
||||
RUN apk add git\
|
||||
&& git config --global safe.directory '*'\
|
||||
&& chown -R bun:bun .
|
||||
|
||||
USER bun
|
||||
|
||||
ADD --chown=bun:bun package.json bun.lockb ./
|
||||
ADD --chown=bun:bun server/package.json server/bun.lockb ./server/
|
||||
|
||||
# install dependencies
|
||||
RUN bun install --frozen-lockfile && \
|
||||
cd server && \
|
||||
bun install --frozen-lockfile
|
||||
cd server && \
|
||||
bun install --frozen-lockfile
|
||||
|
||||
# Add project files
|
||||
ADD --chown=bun:bun . .
|
||||
|
||||
# build
|
||||
RUN cd server && \
|
||||
bun run compile
|
||||
bun run compile
|
||||
|
||||
# remove dev dependencies (bun do not yet support "prune")
|
||||
RUN cd server && \
|
||||
rm -rf node_modules && \
|
||||
bun install --frozen-install --production
|
||||
rm -rf node_modules && \
|
||||
bun install --frozen-install --production
|
||||
|
||||
# go to another VM
|
||||
FROM docker.io/oven/bun:1-alpine AS prod
|
||||
|
Reference in New Issue
Block a user