mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 09:07:47 +01:00
14 lines
399 B
Docker
14 lines
399 B
Docker
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 ./
|
|
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
|
|
COPY entrypoint.sh .
|
|
COPY databases/*.sql databases/
|
|
EXPOSE 8080
|
|
CMD ./entrypoint.sh
|