-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
#54 Docker update
- Loading branch information
Showing
17 changed files
with
95 additions
and
161 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright © 2018 DIG Development team. All rights reserved. | ||
|
||
# Ignore local npm modules and logs | ||
node_modules | ||
npm-debug.log | ||
|
||
# Ignore local configuration | ||
config/local.json | ||
|
||
# Ignore all md files | ||
*.md | ||
|
||
# Ignore all hidden files(git, travis, docker, etc) | ||
.* | ||
|
||
# Ignore all docker files | ||
Dockerfile | ||
docker-compose*.yml |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
node_modules | ||
npm-debug.log | ||
vagrant/.vagrant | ||
vagrant/ubuntu* | ||
docker/db | ||
|
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,25 @@ | ||
# Copyright © 2018 DIG Development team. All rights reserved. | ||
|
||
FROM node:7.6 | ||
|
||
# Sets default values for env vars for the image | ||
ENV NODE_ENV=development \ | ||
DIGBOT_PORT=1337 | ||
|
||
# Create and cd into the directory where the bot will live | ||
WORKDIR /usr/src/digbot | ||
|
||
# Copy package & package-lock files before other files | ||
COPY package*.json ./ | ||
|
||
# Install dependencies(dev-dependecies are not installed) | ||
RUN npm install --only=prod | ||
|
||
# Copies the project into the container | ||
COPY . . | ||
|
||
# Expose port 1337 | ||
EXPOSE 1337 | ||
|
||
# Run the bot | ||
CMD ["npm", "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
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
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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.