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