mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 20:07:33 -07:00
27 lines
No EOL
522 B
Docker
27 lines
No EOL
522 B
Docker
FROM node:alpine
|
|
ENV YARN_CHECKSUM_BEHAVIOR=update
|
|
ARG NODE_ENV=production
|
|
WORKDIR /misskey
|
|
|
|
# Copy Files
|
|
COPY . ./
|
|
|
|
# Install Dependencies
|
|
RUN apk update
|
|
RUN apk add git ffmpeg tini alpine-sdk
|
|
|
|
# Configure corepack and yarn
|
|
RUN corepack enable
|
|
RUN yarn set version berry
|
|
RUN yarn plugin import workspace-tools
|
|
|
|
# Install Dependencies
|
|
RUN yarn add @bull-board/api @bull-board/ui
|
|
RUN yarn install
|
|
RUN yarn build
|
|
|
|
# Remove git files
|
|
RUN rm -rf .git
|
|
|
|
ENTRYPOINT [ "/sbin/tini", "--" ]
|
|
CMD [ "yarn", "run", "migrateandstart" ] |