Oleg Kurapov
6 years ago
committed by
Cian Butler
1 changed files with 8 additions and 3 deletions
@ -1,10 +1,15 @@ |
|||||
|
FROM node:8-alpine as builder |
||||
|
WORKDIR /usr/src/app |
||||
|
RUN apk add --update build-base python |
||||
|
COPY . /usr/src/app |
||||
|
RUN yarn |
||||
|
|
||||
FROM node:8-alpine |
FROM node:8-alpine |
||||
MAINTAINER butlerx@notthe.cloud |
MAINTAINER butlerx@notthe.cloud |
||||
WORKDIR /app |
WORKDIR /app |
||||
RUN adduser -D -h /home/term -s /bin/sh term && \ |
RUN adduser -D -h /home/term -s /bin/sh term && \ |
||||
( echo "term:term" | chpasswd ) && \ |
( echo "term:term" | chpasswd ) && \ |
||||
apk add --update build-base python openssh-client |
apk add openssh-client |
||||
EXPOSE 3000 |
EXPOSE 3000 |
||||
COPY . /app |
COPY --from=builder /usr/src/app /app |
||||
RUN yarn |
|
||||
CMD node bin |
CMD node bin |
||||
|
Loading…
Reference in new issue