SponsorBlockServer/Dockerfile

17 lines
482 B
Docker
Raw Normal View History

FROM node:18-alpine as builder
2022-05-04 07:46:41 +02:00
RUN apk add --no-cache --virtual .build-deps python3 make g++
COPY package.json package-lock.json tsconfig.json entrypoint.sh ./
2020-07-05 10:25:57 +02:00
COPY src src
RUN npm ci && npm run tsc
FROM node:18-alpine as app
WORKDIR /usr/src/app
RUN apk add --no-cache git postgresql-client
2022-05-04 07:46:41 +02:00
COPY --from=builder ./node_modules ./node_modules
COPY --from=builder ./dist ./dist
2024-03-17 18:40:53 +01:00
COPY ./.git/ ./.git
2020-07-05 05:37:57 +02:00
COPY entrypoint.sh .
COPY databases/*.sql databases/
2020-07-05 05:37:57 +02:00
EXPOSE 8080
CMD ./entrypoint.sh