From ee347dd3dcd3c98d634611ad0e40133e48d3eae7 Mon Sep 17 00:00:00 2001 From: Lea Date: Mon, 19 Dec 2022 18:05:16 +0100 Subject: [PATCH] feat: dockerize image proxy --- docker-compose.yml | 12 ++++++++++++ p/Dockerfile | 7 +++++++ 2 files changed, 19 insertions(+) create mode 100644 docker-compose.yml create mode 100644 p/Dockerfile diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..6daee78f --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,12 @@ +version: '3.1' + +# TODO: Dockerize the other services + +services: + proxy: + build: + context: . + dockerfile: p/Dockerfile + restart: unless-stopped + ports: + - 3000:3000 diff --git a/p/Dockerfile b/p/Dockerfile new file mode 100644 index 00000000..05132ff4 --- /dev/null +++ b/p/Dockerfile @@ -0,0 +1,7 @@ +FROM node:18 +WORKDIR /app +COPY package.json /app/ +COPY p /app/p +RUN npm install --frozen-lockfile +ENV NODE_ENV production +CMD ["node", "p/server.js"]