mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-28 12:19:01 +01:00
feat: dockerize image proxy
This commit is contained in:
parent
efd36eb9f5
commit
7c8e99c604
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