mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 19:37:34 -07:00
19596a91e4
Reasons: 1. `pnpm` is now an industry standard, being faster and less buggy than `yarn`. 2. Faster build time as builds are concurrent: 63 seconds down to 35 seconds!! 3. Resolves #9412 Co-authored-by: ThatOneCalculator <kainoa@t1c.dev> Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9461
24 lines
454 B
Docker
24 lines
454 B
Docker
FROM node:19-alpine
|
|
ARG NODE_ENV=production
|
|
WORKDIR /calckey
|
|
|
|
# Copy Files
|
|
COPY . ./
|
|
|
|
# Install Dependencies
|
|
RUN apk update
|
|
RUN apk add git ffmpeg tini alpine-sdk python3
|
|
|
|
# Configure corepack and pnpm
|
|
RUN npm i -g pnpm
|
|
RUN pnpm i --frozen-lockfile
|
|
ARG NODE_ENV=production
|
|
|
|
# Build project (pnp dependencies are installed)
|
|
RUN pnpm run build
|
|
|
|
# Remove git files
|
|
RUN rm -rf .git
|
|
|
|
ENTRYPOINT [ "/sbin/tini", "--" ]
|
|
CMD [ "pnpm", "run", "migrateandstart" ]
|