Skip to content

Commit

Permalink
Tidy up previous build files
Browse files Browse the repository at this point in the history
  • Loading branch information
svilenmarkov committed Aug 7, 2024
1 parent a5728e9 commit f9ea2d7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 323 deletions.
12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
FROM alpine:3.20
FROM golang:1.22.5-alpine3.20 AS builder

WORKDIR /app
COPY . /app
RUN CGO_ENABLED=0 go build .

ARG TARGETOS
ARG TARGETARCH
ARG TARGETVARIANT
FROM alpine:3.20

WORKDIR /app
COPY build/glance-$TARGETOS-$TARGETARCH${TARGETVARIANT} /app/glance
COPY --from=builder /app/glance .

EXPOSE 8080/tcp
ENTRYPOINT ["/app/glance"]
14 changes: 0 additions & 14 deletions Dockerfile.single-platform

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Build the image:
**Make sure to replace "owner" with your name or organization.**

```bash
docker build -t owner/glance:latest -f Dockerfile.single-platform .
docker build -t owner/glance:latest .
```

Push the image to your registry:
Expand Down
303 changes: 0 additions & 303 deletions scripts/build-and-ship/main.go

This file was deleted.

0 comments on commit f9ea2d7

Please sign in to comment.