File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 1
- FROM docker.io/debian:bullseye-slim as build
1
+ FROM docker.io/debian:bookworm-slim as base
2
+
3
+ FROM base as build
2
4
3
5
LABEL org.opencontainers.image.title="LinuxFr.org image caching service"
4
6
LABEL org.opencontainers.image.description="Store external images into a cache to not flood external website"
5
7
LABEL org.opencontainers.image.source="https://github.com/linuxfrorg/img-LinuxFr.org"
6
8
LABEL org.opencontainers.image.url="https://github.com/linuxfrorg/linuxfr.org/blob/master/Container.md"
7
9
LABEL org.opencontainers.image.licenses="AGPL-3.0-only"
8
- LABEL org.opencontainers.image.version="rails7-bullseye "
10
+ LABEL org.opencontainers.image.version="bookworm "
9
11
LABEL org.opencontainers.image.authors=
"Adrien Dorsaz <[email protected] >"
10
12
11
13
ARG UID=1200
@@ -24,9 +26,14 @@ ENV HOME=/linuxfr-img
24
26
WORKDIR /linuxfr-img
25
27
26
28
# Build linuxfr-img
27
- RUN go get -u github.com/linuxfrorg/img-LinuxFr.org
29
+ RUN \
30
+ set -eux; \
31
+ IFS=$'\n\t ' ; \
32
+ git clone https://github.com/linuxfrorg/img-LinuxFr.org; \
33
+ cd img-LinuxFr.org; \
34
+ go install;
28
35
29
- FROM docker.io/debian:bullseye-slim as deploy
36
+ FROM base as deploy
30
37
31
38
ARG UID=1200
32
39
40
47
apt-get clean;
41
48
42
49
USER ${UID}
43
- ENV GOPATH=/linuxfr-img
44
- ENV HOME=/linuxfr-img
45
50
WORKDIR /linuxfr-img
46
51
47
52
COPY --from=build --chown=${UID}:0 --chmod=770 /linuxfr-img/bin/img-LinuxFr.org .
You can’t perform that action at this time.
0 commit comments