Add Dockerfiles

This commit is contained in:
Matt DiMeglio 2025-06-14 12:31:00 -04:00
parent a85225612e
commit 0f0c9b7902
3 changed files with 32 additions and 0 deletions

1
api/.dockerignore Normal file
View file

@ -0,0 +1 @@
**/node_modules/**

17
api/Dockerfile Normal file
View file

@ -0,0 +1,17 @@
FROM node:20-alpine
WORKDIR /app
COPY ./package*.json ./
RUN npm ci
COPY . ./
EXPOSE 5172
EXPOSE 5170
ARG ENVIRONMENT
ENV ENVIRONMENT ${ENVIRONMENT}
CMD npm run ${ENVIRONMENT}

14
api/docker-compose.yaml Normal file
View file

@ -0,0 +1,14 @@
services:
shiftsync-web:
image: 'docker.io/john4064/shiftsync:prod_api'
environment:
- 'TESTVAR=${COOLIFY_VAR}'
volumes:
- /home/jparkhurst/shiftsync:/shiftsync
ports:
- "5172:5172"
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:5172"]
interval: 10s
timeout: 5s
retries: 5