Dockerfile

master v0.1
bel 2019-10-20 02:27:28 +00:00
parent a80f9613ef
commit fb02cc994a
2 changed files with 17 additions and 0 deletions

1
.gitignore vendored Normal file → Executable file
View File

@ -4,3 +4,4 @@ gollum
*.sw*
**/*.sw*
notes-server
exec-notes-server

16
Dockerfile Executable file
View File

@ -0,0 +1,16 @@
FROM golang:1.13-alpine as certs
RUN apk update && apk add --no-cache ca-certificates
FROM busybox:glibc
RUN mkdir -p /var/log
WORKDIR /main
COPY --from=certs /etc/ssl/certs /etc/ssl/certs
COPY . .
ENV GOPATH=""
ENV MNT="/mnt/"
ENTRYPOINT ["/main/exec-notes-server"]
CMD []