Dockerization

This commit is contained in:
William Moore 2022-05-28 18:26:40 -05:00
parent ea26bc54ed
commit 48920f46a1
2 changed files with 16 additions and 0 deletions

6
Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM node:18-alpine3.14
RUN apk update && apk upgrade && sync
WORKDIR /app/temperato
COPY . /app/temperato
RUN npm ci
CMD ["npm", "start"]

10
docker-compose.yml Normal file
View File

@ -0,0 +1,10 @@
version: "3.8"
services:
temperato:
build: .
restart: unless-stopped
env_file: '.env'
logging:
driver: local
options:
max-size: '10m'