Skip to content

Commit

Permalink
build: Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
YDX-2147483647 committed Nov 5, 2023
1 parent 6046f36 commit 36bce70
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:20-alpine
RUN npm config set registry https://registry.npmmirror.com
WORKDIR /home/node/app

COPY package.json .
COPY package-lock.json .
RUN npm install

COPY tsconfig.json .
COPY src .
RUN npm run build-only
11 changes: 11 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: "3"

services:
bulletin-issues-transferred:
build:
context: .
dockerfile: Dockerfile
volumes:
- ./config:/home/node/app/config:ro
- ./output:/home/node/app/output
command: npm run update-server

0 comments on commit 36bce70

Please sign in to comment.