el.xwx.moe/Dockerfile

23 lines
393 B
Docker
Raw Normal View History

2023-08-02 18:52:37 -05:00
# playwright doesnt support debian image
FROM node:20-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
RUN yarn && \
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