mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-29 21:37:34 -07:00
26 lines
534 B
Docker
26 lines
534 B
Docker
FROM node:19-alpine
|
|
ENV YARN_CHECKSUM_BEHAVIOR=update
|
|
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 yarn
|
|
RUN corepack enable
|
|
RUN yarn set version berry
|
|
RUN yarn install --immutable
|
|
RUN yarn plugin import workspace-tools
|
|
|
|
# Build project (pnp dependencies are installed)
|
|
RUN yarn run rebuild
|
|
|
|
# Remove git files
|
|
RUN rm -rf .git
|
|
|
|
ENTRYPOINT [ "/sbin/tini", "--" ]
|
|
CMD [ "yarn", "run", "migrateandstart" ]
|