Moved Dockerfile and docker-compose.yml to top directory.

This commit is contained in:
2019-09-25 18:45:50 +05:00
parent e26a466efc
commit 7f2174a33e
4 changed files with 22 additions and 18 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM golang:1.13-alpine AS build
WORKDIR /go/src/gitlab.com/pztrn/fastpastebin
COPY . .
WORKDIR /go/src/gitlab.com/pztrn/fastpastebin/cmd/fastpastebin
RUN go build
FROM alpine:3.10
LABEL maintainer "Stanislav N. <pztrn@pztrn.name>"
COPY --from=build /go/src/gitlab.com/pztrn/fastpastebin/cmd/fastpastebin/fastpastebin /app/fastpastebin
COPY docker/fastpastebin.docker.yaml /app/fastpastebin.yaml
EXPOSE 25544
ENTRYPOINT [ "/app/fastpastebin", "-config", "/app/fastpastebin.yaml" ]