This commit is contained in:
parent
0e85cae03d
commit
e30046cadd
|
@ -10,8 +10,6 @@ pipeline:
|
||||||
repo: registry.stuifzandapp.com/microsub-server
|
repo: registry.stuifzandapp.com/microsub-server
|
||||||
registry: registry.stuifzandapp.com
|
registry: registry.stuifzandapp.com
|
||||||
secrets: [ docker_username, docker_password ]
|
secrets: [ docker_username, docker_password ]
|
||||||
settings:
|
|
||||||
dockerfile: ./Dockerfile.alpine
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
|
|
22
Dockerfile
22
Dockerfile
|
@ -1,8 +1,16 @@
|
||||||
FROM ubuntu
|
# build stage
|
||||||
RUN apt-get -y update && apt-get install -y ca-certificates
|
FROM golang:1.10.2-alpine3.7 AS build-env
|
||||||
RUN ["mkdir", "/usr/share/eksterd"]
|
RUN apk --no-cache add git
|
||||||
ADD ./eksterd /usr/local/bin
|
RUN go get p83.nl/go/ekster/...
|
||||||
ADD ./templates /usr/share/eksterd
|
|
||||||
|
# final stage
|
||||||
|
FROM alpine
|
||||||
|
RUN apk --no-cache add ca-certificates
|
||||||
|
RUN ["mkdir", "-p", "/opt/micropub"]
|
||||||
|
WORKDIR /opt/micropub
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
ENV EKSTER_TEMPLATES "/usr/share/eksterd"
|
COPY --from=build-env /go/bin/eksterd /app/
|
||||||
ENTRYPOINT ["/usr/local/bin/eksterd"]
|
RUN ["mkdir", "/app/templates"]
|
||||||
|
COPY --from=build-env /go/src/p83.nl/go/ekster/templates /app/templates
|
||||||
|
ENTRYPOINT ["/app/eksterd"]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user