Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure Dockerfile and docker-compose
- Loading branch information
Mateusz Blyszcz
committed
Aug 22, 2018
1 parent
66ffc90
commit 0f77d29
Showing
4 changed files
with
47 additions
and
2 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,17 @@ | ||
.bitbucket-pipelines.yml | ||
.env | ||
.env.dist | ||
.git | ||
.gitignore | ||
.prettierrc | ||
node_modules | ||
data.json | ||
docker-compose.yml | ||
docker-compose.yml.dist | ||
Dockerfile | ||
README.md | ||
src | ||
translations | ||
tsconfig.json | ||
tsconfig.test.json | ||
tslint.json |
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,26 @@ | ||
FROM node:10 | ||
|
||
WORKDIR /app | ||
|
||
COPY package.json . | ||
|
||
# Add credentials on build | ||
ARG SSH_PRIVATE_KEY | ||
ARG SSH_PUBLIC_KEY | ||
RUN mkdir /root/.ssh/ | ||
RUN echo "${SSH_PRIVATE_KEY}" > /root/.ssh/id_rsa && \ | ||
echo "${SSH_PUBLIC_KEY}" > /root/.ssh/id_rsa.pub && \ | ||
chmod 600 /root/.ssh/id_rsa && \ | ||
chmod 600 /root/.ssh/id_rsa.pub | ||
|
||
# Make sure your domain is accepted | ||
RUN touch /root/.ssh/known_hosts | ||
RUN ssh-keyscan bitbucket.org >> /root/.ssh/known_hosts | ||
|
||
RUN npm i --production | ||
|
||
COPY . /app | ||
|
||
EXPOSE 3000 | ||
|
||
CMD npm 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
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