Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit ff9fc8d

Browse files
butlerxWardormeur
authored andcommitted
add dev dockerfile
1 parent b98a77b commit ff9fc8d

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

.dockerignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
node_modules
33
.gitignore
44
*.md
5-
Dockerfile
5+
*Dockerfile
66
*.sh
7+
!docker-entrypoint.sh
78
deploy
89
example
910
*.yml

dev.Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM mhart/alpine-node:0.10.48
2+
MAINTAINER butlerx <[email protected]>
3+
4+
RUN apk add --update git build-base python postgresql-client && \
5+
npm install -g nodemon && \
6+
mkdir -p /usr/src/app /usr/src/cp-translations
7+
ADD docker-entrypoint.sh /usr/src
8+
EXPOSE 10303
9+
VOLUME /usr/src/app /usr/src/cp-translations
10+
CMD ["/usr/src/docker-entrypoint.sh"]

docker-entrypoint.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#! /usr/bin/env sh
2+
cd /usr/src/cp-translations || exit
3+
npm link
4+
cd /usr/src/app || exit
5+
npm install && npm link cp-translations
6+
nodemon service.js

0 commit comments

Comments
 (0)