2022-08-08 03:32:59 +00:00
|
|
|
FROM node:alpine
|
|
|
|
ENV YARN_CHECKSUM_BEHAVIOR=update
|
2022-05-15 13:22:06 +00:00
|
|
|
ARG NODE_ENV=production
|
2018-10-09 06:09:50 +00:00
|
|
|
WORKDIR /misskey
|
|
|
|
|
2022-08-08 03:32:59 +00:00
|
|
|
# Copy Files
|
2019-04-07 12:50:36 +00:00
|
|
|
COPY . ./
|
2021-09-04 17:18:12 +00:00
|
|
|
|
2022-08-08 03:32:59 +00:00
|
|
|
# Install Dependencies
|
|
|
|
RUN apk update
|
|
|
|
RUN apk add git ffmpeg tini alpine-sdk
|
|
|
|
|
|
|
|
# Configure corepack and yarn
|
|
|
|
RUN corepack enable
|
2022-07-26 19:21:39 +00:00
|
|
|
RUN yarn set version berry
|
2022-08-08 03:32:59 +00:00
|
|
|
RUN yarn plugin import workspace-tools
|
|
|
|
|
|
|
|
# Install Dependencies
|
|
|
|
RUN yarn add @bull-board/api @bull-board/ui
|
2022-07-08 08:17:21 +00:00
|
|
|
RUN yarn install
|
|
|
|
RUN yarn build
|
2018-10-09 06:09:50 +00:00
|
|
|
|
2022-08-08 03:32:59 +00:00
|
|
|
# Remove git files
|
|
|
|
RUN rm -rf .git
|
2018-10-30 12:18:03 +00:00
|
|
|
|
2022-08-08 03:32:59 +00:00
|
|
|
ENTRYPOINT [ "/sbin/tini", "--" ]
|
|
|
|
CMD [ "yarn", "run", "migrateandstart" ]
|