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
Geoffroy Empain
committed
Sep 16, 2020
1 parent
25e71d0
commit 354c83f
Showing
6 changed files
with
41 additions
and
7 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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
node_modules | ||
build | ||
.idea | ||
tmp | ||
coverage | ||
data | ||
dist |
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,11 @@ | ||
FROM node:12-alpine | ||
|
||
COPY ./dist/runner.js /app/dist/ | ||
COPY ./dist/runner.js.map /app/dist/ | ||
COPY ./node_modules /app/node_modules | ||
|
||
WORKDIR /app | ||
|
||
LABEL maintainer="pmbot.io" | ||
|
||
CMD ["node", "dist/runner.js"] |
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,20 @@ | ||
FROM node:12-alpine | ||
|
||
COPY ./dist/server.js /app//dist/ | ||
COPY ./dist/server.js.map /app//dist/ | ||
COPY ./node_modules/ /app/node_modules | ||
COPY ./migrate-mongo-config.js /app/ | ||
|
||
RUN mkdir -p /app/migrations | ||
|
||
WORKDIR /app | ||
|
||
VOLUME /secrets | ||
|
||
LABEL maintainer="pmbot.io" | ||
|
||
ENV METROLINE_PORT=80 | ||
|
||
EXPOSE 80 | ||
|
||
CMD ["node", "dist/server.js"] |
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