diff options
author | danielkvist <d94.zaragoza@gmail.com> | 2019-01-10 23:13:32 +0300 |
---|---|---|
committer | danielkvist <d94.zaragoza@gmail.com> | 2019-01-10 23:13:45 +0300 |
commit | 20bd79bfff20f0b654e38c19ccf7b36c706e0155 (patch) | |
tree | 6a3d7beedd26551bc40ab2107471f42590571288 | |
parent | 5cf94845f4253616408407d5842aab1b6e5bcdf8 (diff) |
fix makefilev1.4
-rw-r--r-- | Dockerfile | 5 | ||||
-rw-r--r-- | makefile | 4 |
2 files changed, 5 insertions, 4 deletions
@@ -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/
\ No newline at end of file @@ -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: |