Initial commit

This commit is contained in:
Romain de Laage 2020-05-08 19:41:41 +02:00
commit fa10df3d7a
Signed by: rdelaage
GPG Key ID: 534845FADDF0C329
2 changed files with 31 additions and 0 deletions

16
Dockerfile Normal file
View File

@ -0,0 +1,16 @@
FROM node:14.2.0-alpine3.11
ENV VERSION=1.5
RUN mkdir -p /opt/app && \
apk add --no-cache --virtual .download ca-certificates wget && \
wget https://github.com/cracker0dks/whiteboard/archive/v$VERSION.tar.gz && \
tar -C /opt/app -xzf v$VERSION.tar.gz && \
rm v$VERSION.tar.gz && \
cd /opt/app/whiteboard-$VERSION && \
npm ci && \
apk del .download
EXPOSE 8080
ENTRYPOINT ["node", "/opt/app/whiteboard-1.5/server.js", "--mode=production"]

15
docker-compose.yml Normal file
View File

@ -0,0 +1,15 @@
version: '3'
services:
app:
image: wb
networks:
- docker_default
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:wb.pad.test.picasoft.net
- traefik.port=8080
restart: always
networks:
docker_default:
external: true