Compare commits

..

No commits in common. "13d3991a10cb43c777e03288e891dcad6927e66d" and "1ce43d2c76a089fddb43e4620d18e81a3bda1480" have entirely different histories.

2 changed files with 7 additions and 8 deletions

View File

@ -51,7 +51,7 @@ tidy:
go mod tidy go mod tidy
watch: watch:
go run github.com/cortesi/modd/cmd/modd@v0.8.1 modd
lint: lint:
golangci-lint run --enable-all golangci-lint run --enable-all

View File

@ -1,4 +1,4 @@
FROM reg.cadoles.com/proxy_cache/library/golang:1.21 AS build FROM golang:1.19 AS build
ARG HTTP_PROXY= ARG HTTP_PROXY=
ARG HTTPS_PROXY= ARG HTTPS_PROXY=
@ -18,15 +18,14 @@ RUN cp -f misc/docker/config-patch.txt misc/release/config-patch.txt \
&& npm ci \ && npm ci \
&& make ARCH_TARGETS=amd64 release && make ARCH_TARGETS=amd64 release
FROM reg.cadoles.com/proxy_cache/library/busybox FROM busybox
RUN adduser -D -h /app fsmtp
COPY --from=build /src/release/fake-smtp-linux-amd64 /app COPY --from=build /src/release/fake-smtp-linux-amd64 /app
RUN chown -R fsmtp:fsmtp /app
EXPOSE 8080 2525
USER fsmtp
WORKDIR /app WORKDIR /app
RUN mkdir -p /app
EXPOSE 8080 2525
CMD ["bin/fake-smtp", "--config", "config.yml"] CMD ["bin/fake-smtp", "--config", "config.yml"]