el.xwx.moe/Dockerfile

25 lines
637 B
Docker
Raw Normal View History

2023-10-20 21:49:43 -05:00
FROM node:18.18-bullseye-slim
2023-08-02 18:52:37 -05:00
ARG DEBIAN_FRONTEND=noninteractive
2023-08-02 18:52:37 -05:00
RUN mkdir /data
WORKDIR /data
2023-08-03 16:54:04 -05:00
COPY ./package.json ./yarn.lock ./playwright.config.ts ./
2023-08-02 18:52:37 -05:00
# Increase timeout to pass github actions arm64 build
2024-01-02 11:39:50 -06:00
RUN --mount=type=cache,sharing=locked,target=/usr/local/share/.cache/yarn yarn install --network-timeout 10000000
2023-10-20 22:06:09 -05:00
2024-06-27 11:39:03 -05:00
# RUN /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" && brew install monolith
RUN npx playwright install-deps && \
apt-get clean && \
yarn cache clean
2023-08-02 18:52:37 -05:00
COPY . .
RUN yarn prisma generate && \
yarn build
2023-08-02 18:52:37 -05:00
CMD yarn prisma migrate deploy && yarn start