Merge pull request #5 from lukaszbudnik/dockerfile-changes
single Dockerfile for testing and official builds
This commit is contained in:
2
.github/workflows/docker-image.yml
vendored
2
.github/workflows/docker-image.yml
vendored
@@ -15,4 +15,4 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Build the Docker image
|
- 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)
|
||||||
|
|||||||
@@ -3,8 +3,7 @@ FROM golang:1.15.7-alpine3.13 as builder
|
|||||||
LABEL maintainer="Łukasz Budnik lukasz.budnik@gmail.com"
|
LABEL maintainer="Łukasz Budnik lukasz.budnik@gmail.com"
|
||||||
|
|
||||||
# build yosoy
|
# build yosoy
|
||||||
RUN apk --update add git
|
ADD . /go/yosoy
|
||||||
RUN git clone https://github.com/lukaszbudnik/yosoy.git
|
|
||||||
RUN cd /go/yosoy && go build
|
RUN cd /go/yosoy && go build
|
||||||
|
|
||||||
FROM alpine:3.13
|
FROM alpine:3.13
|
||||||
|
|||||||
@@ -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
|
|
||||||
Reference in New Issue
Block a user