Skip to content

Commit

Permalink
Remove trailing * during copy, remove unneeded runs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdor authored and AEtherC0r3 committed Sep 29, 2018
1 parent e994e3d commit 08e7673
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
2 changes: 1 addition & 1 deletion grnet/mqtt.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Based on Debian
############################################################

# Set the base image to Debia
# Set the base image to Debian
FROM debian:stretch

################## BEGIN INSTALLATION ######################
Expand Down
19 changes: 6 additions & 13 deletions grnet/website.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Dockerfile to build and server LambdaSpace's website
############################################################

## Builder
# Use the Node image to build the website's assets
FROM node:10-stretch as asset_builder

Expand All @@ -12,24 +13,16 @@ WORKDIR /new_website
RUN yarn install
RUN yarn build


# Set the base image to Debian
## Website container
FROM nginx:alpine

################## BEGIN INSTALLATION ######################
RUN apk add --update --no-cache ca-certificates

# Forward request and error logs to docker log collector
RUN ln -sf /dev/stdout /var/log/nginx/access.log
RUN ln -sf /dev/stderr /var/log/nginx/error.log

# Copy config from host
COPY website-nginx.conf /etc/nginx/nginx.conf

# Copy assets from builer
WORKDIR /usr/share/nginx/html
RUN rm *
COPY --from=asset_builder /new_website/* ./

################## INSTALLATION END ######################
COPY --from=asset_builder /new_website/ ./

EXPOSE 80 443
CMD nginx -g "daemon off;"
EXPOSE 80 443

0 comments on commit 08e7673

Please sign in to comment.