SponsorBlockServer/Dockerfile

15 lines
399 B
Docker
Raw Normal View History

FROM node:14-alpine as builder
RUN apk add --no-cache --virtual .build-deps python 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:14-alpine as app
WORKDIR /usr/src/app
COPY --from=builder node_modules .
COPY --from=builder dist ./dist
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