Skip to content

Commit

Permalink
Added AMD Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
JarcauCristian committed Mar 18, 2024
1 parent 607b8f1 commit e68c10b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Build image
run: docker build . --file Dockerfile --tag scr4pp/go_load_balancer:latest
run: docker build . --file DockerfileAMD --tag scr4pp/go_load_balancer:latest
- name: Push Image
uses: docker/build-push-action@v2
with:
Expand Down
21 changes: 21 additions & 0 deletions DockerfileAMD
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM golang:1.21

WORKDIR /app

COPY go.mod go.sum ./

RUN go mod download

COPY configs ./configs

RUN curl https://dl.min.io/client/mc/release/linux-amd64/mc -o mc

RUN chmod +x ./mc

COPY *.go ./

RUN CGO_ENABLED=0 GOOS=linux go build -o /minio_api

EXPOSE 8000

CMD ["/minio_api"]

0 comments on commit e68c10b

Please sign in to comment.