mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 09:57:29 -07:00
25 lines
500 B
Docker
25 lines
500 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 corepack enable
|
|
RUN corepack prepare pnpm@latest --activate
|
|
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" ]
|