~poldi1405/gomod-recter

480064bd02f7f7098f443bb4c8eb92d5325dadd8 — Moritz Poldrack 2 years ago 14b45f2 v0.3.1
added CA Certificates to container
3 files changed, 7 insertions(+), 2 deletions(-)

A .docker/.gitignore
M .docker/Dockerfile
M Makefile
A .docker/.gitignore => .docker/.gitignore +2 -0
@@ 0,0 1,2 @@
etc
themes

M .docker/Dockerfile => .docker/Dockerfile +1 -0
@@ 1,5 1,6 @@
FROM scratch
COPY recter /
COPY data /
COPY etc /
COPY themes /
CMD ["/recter"]

M Makefile => Makefile +4 -2
@@ 11,13 11,15 @@ REPO=mpldr
IMAGEFULLNAME=${REPO}/${IMAGENAME}:${VERSION}
docker:
	$(MAKE) build OUTFILE=.docker/recter GOTAGS="-tags docker" CGO_ENABLED=0
	mkdir -p .docker/data
	mkdir -p .docker/data .docker/etc/ssl/
	cp -rf themes/ .docker/
	docker run --rm -v $(PWD)/.docker:/data alpine cp /etc/ssl/cert.pem /data/etc/ssl/
	docker build -t ${IMAGEFULLNAME} .docker

push:
	docker tag ${IMAGEFULLNAME} ${REPO}/${IMAGENAME}:latest
	docker push ${IMAGEFULLNAME} ${REPO}/${IMAGENAME}:latest
	docker push ${IMAGEFULLNAME}
	docker push ${REPO}/${IMAGENAME}:latest

clean:
	rm recter