feat: dockerize image proxy

This commit is contained in:
Lea 2022-12-19 18:05:16 +01:00
parent 36a8bec791
commit ee347dd3dc
2 changed files with 19 additions and 0 deletions

12
docker-compose.yml Normal file
View file

@ -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

7
p/Dockerfile Normal file
View file

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