Merge pull request #5 from lukaszbudnik/dockerfile-changes

single Dockerfile for testing and official builds
This commit is contained in:
Łukasz Budnik
2021-02-04 08:15:49 +01:00
committed by GitHub
3 changed files with 2 additions and 18 deletions

View File

@@ -15,4 +15,4 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: docker build . --file TestDockerfile --tag yosoy-local:$(date +%s)
run: docker build . --file Dockerfile --tag yosoy-local:$(date +%s)

View File

@@ -3,8 +3,7 @@ FROM golang:1.15.7-alpine3.13 as builder
LABEL maintainer="Łukasz Budnik lukasz.budnik@gmail.com"
# build yosoy
RUN apk --update add git
RUN git clone https://github.com/lukaszbudnik/yosoy.git
ADD . /go/yosoy
RUN cd /go/yosoy && go build
FROM alpine:3.13

View File

@@ -1,15 +0,0 @@
FROM golang:1.15.7-alpine3.13 as builder
LABEL maintainer="Łukasz Budnik lukasz.budnik@gmail.com"
# build yosoy
ADD . /go/yosoy
RUN cd /go/yosoy && go build
FROM alpine:3.13
COPY --from=builder /go/yosoy/yosoy /bin
# register entrypoint
ENTRYPOINT ["yosoy"]
EXPOSE 80