Skip to content

Commit

Permalink
fix: copy all files in build, use full image as builder
Browse files Browse the repository at this point in the history
  • Loading branch information
attributeerror committed Nov 17, 2023
1 parent 34952fa commit 10c3bac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.md
.gitignore
*.env
.github/
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM golang:1.21.4-alpine3.18 AS build-env
FROM golang:1.21.4 AS build-env

WORKDIR /app

COPY go.mod go.sum ./
RUN go mod download

COPY *.go ./
COPY ./ ./

RUN CGO_ENABLED=1 GOOS=linux go build -o ./currency-rates-cronjob

Expand Down

0 comments on commit 10c3bac

Please sign in to comment.