mirror of
https://github.com/sergeyyarkov/asu_tools_service.git
synced 2026-10-11 02:19:09 +03:00
docker
This commit is contained in:
parent
4fe5e06684
commit
83c0ba3cab
5
.dockerignore
Normal file
5
.dockerignore
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
node_modules
|
||||||
|
.git
|
||||||
|
.vscode
|
||||||
|
uploads
|
||||||
|
.env
|
||||||
13
Dockerfile
Normal file
13
Dockerfile
Normal 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
20
compose.yml
Normal 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
|
||||||
@ -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",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user