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
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Tor builder
FROM --platform=$TARGETPLATFORM docker.io/library/alpine:3.23.2 as tor-builder
FROM --platform=$TARGETPLATFORM docker.io/library/alpine:3.23.3 as tor-builder

Check warning on line 2 in Dockerfile

View workflow job for this annotation

GitHub Actions / build

Setting platform to predefined $TARGETPLATFORM in FROM is redundant as this is the default behavior

RedundantTargetPlatform: Setting platform to predefined $TARGETPLATFORM in FROM is redundant as this is the default behavior More info: https://docs.docker.com/go/dockerfile/rule/redundant-target-platform/

Check warning on line 2 in Dockerfile

View workflow job for this annotation

GitHub Actions / build

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

ARG TOR_VERSION=0.4.8.22
RUN apk add --update --no-cache \
Expand All @@ -24,7 +24,7 @@
make install

# Build the lyrebird binary (cross-compiling)
FROM --platform=$BUILDPLATFORM golang:1.25-alpine as lyrebird-builder

Check warning on line 27 in Dockerfile

View workflow job for this annotation

GitHub Actions / build

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/
ARG LYREBIRD_VERSION="0.8.1"

WORKDIR /lyrebird
Expand All @@ -37,9 +37,9 @@
CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -ldflags="-X main.lyrebirdVersion=$(VERSION)" ./cmd/lyrebird

# Tor runner
FROM --platform=$TARGETPLATFORM docker.io/library/alpine:3.23.2 as runner
FROM --platform=$TARGETPLATFORM docker.io/library/alpine:3.23.3 as runner

Check warning on line 40 in Dockerfile

View workflow job for this annotation

GitHub Actions / build

Setting platform to predefined $TARGETPLATFORM in FROM is redundant as this is the default behavior

RedundantTargetPlatform: Setting platform to predefined $TARGETPLATFORM in FROM is redundant as this is the default behavior More info: https://docs.docker.com/go/dockerfile/rule/redundant-target-platform/

Check warning on line 40 in Dockerfile

View workflow job for this annotation

GitHub Actions / build

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

LABEL \

Check warning on line 42 in Dockerfile

View workflow job for this annotation

GitHub Actions / build

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "LABEL key=value" should be used instead of legacy "LABEL key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
org.opencontainers.image.source "https://github.com/rinsecode/tor-docker"

WORKDIR /app
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.quick
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -ldflags="-X main.lyrebirdVersion=$(VERSION)" ./cmd/lyrebird

# Tor runner
FROM --platform=$TARGETPLATFORM docker.io/library/alpine:3.23.2 as runner
FROM --platform=$TARGETPLATFORM docker.io/library/alpine:3.23.3 as runner

LABEL \
org.opencontainers.image.source "https://github.com/rinsecode/tor-docker"
Expand Down
Loading