fix(docker): image now builds #3
2
Makefile
2
Makefile
@ -51,7 +51,7 @@ tidy:
|
||||
go mod tidy
|
||||
|
||||
watch:
|
||||
modd
|
||||
go run github.com/cortesi/modd/cmd/modd@v0.8.1
|
||||
|
||||
lint:
|
||||
golangci-lint run --enable-all
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM golang:1.19 AS build
|
||||
FROM reg.cadoles.com/proxy_cache/library/golang:1.21 AS build
|
||||
wpetit marked this conversation as resolved
Outdated
|
||||
|
||||
ARG HTTP_PROXY=
|
||||
ARG HTTPS_PROXY=
|
||||
@ -18,14 +18,15 @@ RUN cp -f misc/docker/config-patch.txt misc/release/config-patch.txt \
|
||||
&& npm ci \
|
||||
&& make ARCH_TARGETS=amd64 release
|
||||
|
||||
FROM busybox
|
||||
FROM reg.cadoles.com/proxy_cache/library/busybox
|
||||
|
||||
RUN adduser -D -h /app fsmtp
|
||||
|
||||
COPY --from=build /src/release/fake-smtp-linux-amd64 /app
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN mkdir -p /app
|
||||
RUN chown -R fsmtp:fsmtp /app
|
||||
|
||||
EXPOSE 8080 2525
|
||||
USER fsmtp
|
||||
WORKDIR /app
|
||||
|
||||
CMD ["bin/fake-smtp", "--config", "config.yml"]
|
Loading…
Reference in New Issue
Block a user
Quel est le problème de construction avec les versions de Go > 1.17 ? 🤔 Ça me parait bizarre vu la rétrocompatibilité assurée entre les versions. Un soucis avec une dépendance ?
Et pour ma gouverne, quel est ce nouveau repository
reg.cadoles.com/dh
?reg.cadoles.com/proxy_cache
n'existe plus ?