Skip to content

Commit

Permalink
Add dockerfile from SCA
Browse files Browse the repository at this point in the history
  • Loading branch information
sheronzcx authored Oct 10, 2021
1 parent 020b2e3 commit aff305d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM python:rc-alpine3.13
ENV WORKDIR /usr/src/app/
WORKDIR $WORKDIR
COPY package*.json $WORKDIR
RUN npm install --production --no-cache

FROM node:12-alpine
ENV USER node
ENV WORKDIR /home/$USER/app
WORKDIR $WORKDIR
ADD --from=0 /usr/src/app/node_modules node_modules
RUN chown $USER:$USER $WORKDIR
COPY --chown=node . $WORKDIR

EXPOSE 22

0 comments on commit aff305d

Please sign in to comment.