mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 11:36:58 +03:00
Fix docker container
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
FROM node:16-alpine as builder
|
||||
RUN apk add --no-cache --virtual .build-deps python make g++
|
||||
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:16-alpine as app
|
||||
WORKDIR /usr/src/app
|
||||
COPY --from=builder node_modules .
|
||||
COPY --from=builder dist ./dist
|
||||
RUN apk add git
|
||||
COPY --from=builder ./node_modules ./node_modules
|
||||
COPY --from=builder ./dist ./dist
|
||||
COPY ./.git ./.git
|
||||
COPY entrypoint.sh .
|
||||
COPY databases/*.sql databases/
|
||||
EXPOSE 8080
|
||||
|
||||
Reference in New Issue
Block a user