Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/build_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ jobs:
uses: docker/build-push-action@v2
with:
push: true
file: "{context}/Dockerfile.dev"
tags: |
odpf/meteor:dev
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ dockers:
goarch: amd64
ids:
- meteor
dockerfile: Dockerfile.production
dockerfile: Dockerfile
image_templates:
- 'docker.io/odpf/{{.ProjectName}}:latest'
- 'docker.io/odpf/{{.ProjectName}}:{{ .Version }}'
Expand Down
8 changes: 2 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
FROM golang:1.16-stretch as base
WORKDIR /build/
COPY . .
RUN ["make", "build-dev"]

FROM alpine:latest
COPY --from=base /build/meteor /usr/bin/meteor

COPY meteor /usr/bin/meteor
RUN apk update
RUN apk add ca-certificates

Expand Down
11 changes: 11 additions & 0 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM golang:1.16-stretch as base
WORKDIR /build/
COPY . .
RUN ["make", "build-dev"]

FROM alpine:latest
COPY --from=base /build/meteor /usr/bin/meteor
RUN apk update
RUN apk add ca-certificates

CMD ["meteor"]
7 changes: 0 additions & 7 deletions Dockerfile.production

This file was deleted.