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"]