Merge pull request #52 from joseluisq/feature/remove_extra_docker_volumes
refactor: remove extra docker scratch/alpine volumes
Diff
Makefile | 10 +++++++++-
docker/alpine/Dockerfile | 1 -
docker/scratch/Dockerfile | 1 -
3 files changed, 9 insertions(+), 3 deletions(-)
@@ -117,10 +117,18 @@ fmt:
@cargo fmt --all
.PHONY: fmt
docker.image:
@echo "Creating Docker Scratch image..."
@docker build \
--rm=true -f ./docker/scratch/Dockerfile \
--build-arg SERVER_VERSION="${PKG_TAG}" -t joseluisq/${PKG_NAME}:devel . --pull=true
.PHONY: docker.image
docker.image.alpine:
@echo "Creating Docker Alpine image..."
@docker build \
--rm=true -f ./docker/alpine/Dockerfile \
--build-arg SERVER_VERSION="alpine" -t ${PKG_NAME}:alpine . --pull=true
--build-arg SERVER_VERSION="${PKG_TAG}" -t joseluisq/${PKG_NAME}:devel-alpine . --pull=true
.PHONY: docker.image.alpine
@@ -19,7 +19,6 @@ COPY ./docker/alpine/entrypoint.sh /
COPY ./docker/public /public
EXPOSE 80
VOLUME ["/public"]
ENTRYPOINT ["/entrypoint.sh"]
CMD ["static-web-server"]
@@ -15,7 +15,6 @@ COPY --from=latest /usr/local/bin/static-web-server /
COPY ./docker/public /public
EXPOSE 80
VOLUME ["/public"]
ENTRYPOINT ["/static-web-server"]