Skip to content

Commit

Permalink
Merge pull request #18 from hanazuki/bookworm
Browse files Browse the repository at this point in the history
Bookworm
  • Loading branch information
hanazuki authored Dec 20, 2023
2 parents 3970041 + affc551 commit 9f91066
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
18 changes: 4 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,15 @@
# syntax = docker/dockerfile:1


FROM debian:bullseye as build-base

COPY <<EOF /etc/apt/preferences.d/backports.pref
Package: *
Pin: release a=bullseye-backports
Pin-Priority: 500
EOF

COPY <<EOF /etc/apt/sources.list.d/backports.list
deb http://deb.debian.org/debian bullseye-backports main
EOF
FROM debian:bookworm as build-base

RUN apt-get update -qq && apt-get install -y --no-install-recommends devscripts wget
RUN gpg --no-default-keyring --keyring trustedkeys.gpg --fetch-keys https://github.com/hanazuki.gpg

FROM build-base as build-executile
WORKDIR /tmp/build
RUN dget https://github.com/hanazuki/executile/releases/download/v0.1.0/executile_0.1.0_source.changes
WORKDIR /tmp/build/executile-0.1.0
RUN dget https://github.com/hanazuki/executile/releases/download/v0.1.1/executile_0.1.1_source.changes
WORKDIR /tmp/build/executile-0.1.1
RUN apt-get build-dep -y .
RUN debuild -b -uc

Expand All @@ -31,7 +21,7 @@ COPY . .
RUN --mount=type=cache,target=/root/go/pkg/mod go mod vendor
RUN debuild -us -uc

FROM debian:bullseye
FROM debian:bookworm
RUN --mount=type=bind,target=/tmp/build-executile,source=/tmp/build,from=build-executile \
--mount=type=bind,target=/tmp/build-s3tftpd,source=/tmp/build,from=build-s3tftpd \
apt-get update -qq && \
Expand Down
1 change: 1 addition & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ s3tftpd (0.4.4) UNRELEASED; urgency=medium

* Update dependency, migrate to aws-sdk-go-v2
* Require golang v1.19
* container: Base image is now bookworm

-- Kasumi Hanazuki <[email protected]> Tue, 23 Aug 2022 10:04:10 +0000

Expand Down

0 comments on commit 9f91066

Please sign in to comment.