Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

Commit

Permalink
a dockerfile without stages
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Lavigne committed Oct 2, 2018
1 parent c480036 commit fd08893
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ coverage/
.nyc_output/
*.log
.env
.git
16 changes: 16 additions & 0 deletions onestep.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# build
FROM nginx:stable-alpine

ARG CONTROLLER_SERVICE=http://lw-controller:8080
ENV CONTROLLER_SERVICE="${CONTROLLER_SERVICE}"

WORKDIR /app
COPY . .

RUN apk add --no-cache --virtual .build-deps nodejs alpine-sdk python \
&& npm install \
&& npm run deploy:prod \
&& apk del .build-deps

RUN cp /app/dist/docker-nginx.conf /etc/nginx/conf.d/default.conf
RUN mv /app/dist/ /var/www/

0 comments on commit fd08893

Please sign in to comment.