Skip to content
Snippets Groups Projects
Commit 5de37e63 authored by Brett Choquet's avatar Brett Choquet
Browse files

Dockerfile update

parent 4513fd3c
No related branches found
No related tags found
No related merge requests found
node_modules/
\ No newline at end of file
FROM node:14-buster-slim
RUN apt update && apt install -y git openssh-client
RUN npm install --global pm2
EXPOSE 22
ARG SSH_KEY
ARG SSH_KEY_PASSPHRASE
RUN chmod go-w /root
RUN mkdir -p /root/.ssh && \
chmod 600 /root/.ssh
RUN echo "$SSH_KEY" >> /root/.ssh/id_rsa && \
echo "$SSH_KEY_PASSPHRASE" >> /root/.ssh/id_rsa.pub
RUN chmod -R 600 /root/.ssh/id_rsa && \
chmod -R 600 /root/.ssh/id_rsa.pub
RUN ssh-keyscan -Ht rsa forgemia.inra.fr,147.100.164.13 >> ~/.ssh/known_hosts
COPY . /app
RUN cd /app && yarn
CMD [ "pm2-runtime","--name","in-sylva.gatekeeper", "yarn start:prod"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment