mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-09 16:52:13 +01:00
16 lines
482 B
Docker
16 lines
482 B
Docker
FROM node:18-alpine as builder
|
|
RUN apk add --no-cache --virtual .build-deps python3 make g++
|
|
COPY package.json package-lock.json tsconfig.json entrypoint.sh ./
|
|
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
|
|
COPY --from=builder ./node_modules ./node_modules
|
|
COPY --from=builder ./dist ./dist
|
|
COPY ./.git/ ./.git
|
|
COPY entrypoint.sh .
|
|
COPY databases/*.sql databases/
|
|
EXPOSE 8080
|
|
CMD ./entrypoint.sh
|