Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kaznak committed Jun 20, 2024
1 parent 4e2dcd0 commit 74f6933
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions node-apploader/20-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,22 @@ LABEL name="Node application loader" \
summary="Node that load, install, build and start a project."

RUN apk update \
&& apk add --no-cache git \
&& apk add --no-cache git openssh \
&& apk cache clean

USER node

WORKDIR /home/node

COPY ./entrypoint.npm.sh .
RUN mkdir ~/.ssh
RUN ssh-keyscan github.com | tee ~/.ssh/known_hosts
RUN chmod -R go-rwx ~/.ssh

COPY ./entrypoint.sh .

ENV GIT_REPOSITORY=
ENV GIT_SSH_KEY=
ENV NPM=npm
ENV NODE_ENV=development

ENTRYPOINT [ "entrypoint.npm.sh" ]
ENTRYPOINT [ "/home/node/entrypoint.sh" ]

0 comments on commit 74f6933

Please sign in to comment.