From 48920f46a1972b4dc9c2c4e3e37452e568759cb1 Mon Sep 17 00:00:00 2001 From: William Moore Date: Sat, 28 May 2022 18:26:40 -0500 Subject: [PATCH] Dockerization --- Dockerfile | 6 ++++++ docker-compose.yml | 10 ++++++++++ 2 files changed, 16 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..02d42ee --- /dev/null +++ b/Dockerfile @@ -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"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..e5edb13 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +version: "3.8" +services: + temperato: + build: . + restart: unless-stopped + env_file: '.env' + logging: + driver: local + options: + max-size: '10m' \ No newline at end of file