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

Commit

Permalink
fix makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkvist committed Jan 10, 2019
1 parent 5cf9484 commit 20bd79b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
@@ -1,6 +1,7 @@
FROM nginx
LABEL maintainer="d94.zaragoza@gmail.com"
EXPOSE 80/tcp
EXPOSE 80/udp
ARG EXPOSE=80
EXPOSE ${EXPOSE}/tcp
EXPOSE ${EXPOSE}/udp
ARG HUGO_SITE=exampleSite
COPY /${HUGO_SITE}/public/ /usr/share/nginx/html/
4 changes: 2 additions & 2 deletions makefile
Expand Up @@ -13,9 +13,9 @@ server:
server-draft:
cd ./$(HUGO_SITE) && hugo server -w -D
docker:
docker image build --build-arg HUGO_SITE=$(HUGO_SITE) -t $(IMAGE_NAME) .
docker image build --build-arg HUGO_SITE=$(HUGO_SITE) --build-arg EXPOSE=$(IMAGE_PORT) -t $(IMAGE_NAME) .
docker-nc:
docker image build --build-arg HUGO_SITE=$(HUGO_SITE) --no-cache -t $(IMAGE_NAME) .
docker image build --build-arg HUGO_SITE=$(HUGO_SITE) --build-arg EXPOSE=$(IMAGE_PORT) --no-cache -t $(IMAGE_NAME) .
run:
docker container run -d -p $(IMAGE_PORT):$(HOST_PORT) --name $(APP_NAME) $(IMAGE_NAME)
stop:
Expand Down

0 comments on commit 20bd79b

Please sign in to comment.