Skip to content

Commit 534840b

Browse files
committed
wip
0 parents  commit 534840b

8 files changed

+1306
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/node_modules/

Dockerfile

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM node:lts-alpine
2+
3+
RUN mkdir -p /app
4+
COPY ./server.mjs /app/
5+
COPY ./package.json /app/
6+
COPY ./package-lock.json /app/
7+
COPY ./public/ /app/public/
8+
9+
WORKDIR /app
10+
RUN npm ci --include=prod
11+
12+
CMD ["npm", "run", "start"]

docker-compose.dev.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
include:
2+
- ./docker-compose.yml
3+
4+
services:
5+
pi-stats:
6+
command: npm run serve
7+
volumes:
8+
- ./server.mjs:/app/server.mjs
9+
- ./public:/app/public/

docker-compose.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
services:
2+
pi-stats:
3+
build: .
4+
container_name: pi-stats
5+
hostname: pi-stats
6+
network_mode: host

0 commit comments

Comments
 (0)