mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 06:37:58 +01:00
feat: dockerize image proxy
This commit is contained in:
parent
36a8bec791
commit
ee347dd3dc
2 changed files with 19 additions and 0 deletions
12
docker-compose.yml
Normal file
12
docker-compose.yml
Normal 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
7
p/Dockerfile
Normal 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"]
|
Loading…
Reference in a new issue