This commit is contained in:
Sergey Yarkov 2026-03-06 11:04:25 +03:00
parent 4fe5e06684
commit 83c0ba3cab
4 changed files with 39 additions and 1 deletions

5
.dockerignore Normal file
View File

@ -0,0 +1,5 @@
node_modules
.git
.vscode
uploads
.env

13
Dockerfile Normal file
View File

@ -0,0 +1,13 @@
ARG NODE_IMAGE=node:22.14.0-slim
FROM ${NODE_IMAGE}
ENV PORT=3001
WORKDIR /app
COPY package*.json .
COPY . .
RUN npm ci --only=production
EXPOSE ${PORT}
CMD [ "node", "index.js" ]

20
compose.yml Normal file
View File

@ -0,0 +1,20 @@
services:
asu_tools:
container_name: asu_tools
image: sergeyyarkov/asu_tools:latest
build:
context: .
dockerfile: Dockerfile
env_file: .env
environment:
- MSSQL_HOST=mssql
networks:
- asu_net
ports:
- 3001:3001
volumes:
- ./uploads:/app/uploads
networks:
asu_net:
external: true

View File

@ -1,5 +1,5 @@
{ {
"name": "asu_tools-sync-service", "name": "asu_tools_service",
"version": "1.0.0", "version": "1.0.0",
"main": "index.js", "main": "index.js",
"type": "module", "type": "module",