Skip to content

Commit

Permalink
chore: update to 1.23.6
Browse files Browse the repository at this point in the history
  • Loading branch information
wilmardo authored Jul 26, 2023
1 parent ac4aac0 commit 9858b5b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
FROM lansible/upx:latest as upx

FROM golang:1.20-alpine as builder

# https://github.com/syncthing/syncthing/releases
ENV VERSION=v1.23.5
ENV VERSION=v1.23.6

# Add unprivileged user
RUN echo "syncthing:x:1000:1000:syncthing:/:" > /etc_passwd
RUN echo "syncthing:x:1000:syncthing" > /etc_group

# Install build needs
RUN apk add --no-cache \
git
git \
upx

# Get syncthing from Github
RUN git clone --depth 1 --branch "${VERSION}" https://github.com/syncthing/syncthing.git /syncthing
Expand All @@ -23,8 +22,6 @@ WORKDIR /syncthing
RUN --mount=type=cache,target=/root/.cache \
CGO_ENABLED=0 go run build.go -no-upgrade build syncthing

# 'Install' upx from image since upx isn't available for aarch64 from Alpine
COPY --from=upx /usr/bin/upx /usr/bin/upx
# Minify binaries and create config folder
# no upx: 23.6M
# upx: 9.4M
Expand Down

0 comments on commit 9858b5b

Please sign in to comment.