mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-17 21:18:47 +03:00
fix docker build, add proper mocks to tests, remove YouTubeAPI dependency on youtube test mock, move index.ts and test.ts to /src ant /test folders
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
FROM node:12
|
||||
WORKDIR /usr/src/app
|
||||
COPY package.json .
|
||||
RUN npm install
|
||||
COPY index.ts .
|
||||
COPY package-lock.json .
|
||||
COPY tsconfig.json .
|
||||
COPY src src
|
||||
RUN npm ci
|
||||
RUN npm run tsc
|
||||
RUN mkdir databases
|
||||
COPY databases/*.sql databases/
|
||||
COPY entrypoint.sh .
|
||||
EXPOSE 8080
|
||||
CMD ./entrypoint.sh
|
||||
CMD ./entrypoint.sh
|
||||
|
||||
Reference in New Issue
Block a user