This repository was archived by the owner on Apr 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
203537f
commit 7b9f1e9
Showing
3 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM node:7.4-alpine | ||
|
||
ENV APP_DIR=/usr/src/app | ||
|
||
RUN npm install -g nodemon yarn | ||
|
||
RUN mkdir -p $APP_DIR | ||
|
||
COPY package.json yarn.lock /usr/src/ | ||
WORKDIR /usr/src | ||
RUN yarn install | ||
|
||
ENV NODE_PATH=/usr/src/node_modules | ||
ENV PATH="$PATH:/usr/src/node_modules/.bin" | ||
WORKDIR $APP_DIR | ||
|
||
CMD [ "nodemon", "--exec", "yarn", "run", "start" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ services: | |
app: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.dev | ||
ports: | ||
- 3000:3000 | ||
volumes: | ||
|