Added docker-related files

This commit is contained in:
Alejandro Celaya 2018-06-17 08:04:53 +02:00
parent b008c37a5b
commit 853212b419
6 changed files with 7961 additions and 0 deletions

2
.gitignore vendored
View file

@ -20,3 +20,5 @@ package-lock.json
npm-debug.log*
yarn-debug.log*
yarn-error.log*
docker-compose.override.yml

12
Dockerfile Normal file
View file

@ -0,0 +1,12 @@
FROM node:10.4.1-alpine
MAINTAINER Alejandro Celaya <alejandro@alejandrocelaya.com>
# Install yarn
RUN apk add --no-cache --virtual yarn
# Make home dir writable by anyone
RUN chmod 777 /home
CMD cd /home/shlink/www && \
yarn install && \
yarn start

View file

@ -0,0 +1,8 @@
version: '3'
services:
shlink_web_client_node:
user: 1000:1000
volumes:
- /etc/passwd:/etc/passwd:ro
- /etc/group:/etc/group:ro

13
docker-compose.yml Normal file
View file

@ -0,0 +1,13 @@
version: '3'
services:
shlink_web_client_node:
container_name: shlink_web_client_node
build:
context: .
dockerfile: ./Dockerfile
volumes:
- ./:/home/shlink/www
ports:
- "3000:3000"
- "56745:56745"

2
indocker Executable file
View file

@ -0,0 +1,2 @@
#!/usr/bin/env bash
docker exec -it shlink_web_client_node /bin/sh -c "cd /home/shlink/www && $*"

7924
yarn.lock Normal file

File diff suppressed because it is too large Load diff