Fix docker build recipe

This commit is contained in:
2022-11-22 15:18:28 -06:00
parent db0a3ac98f
commit 19e15d3fe7
10 changed files with 34 additions and 30 deletions

View File

@ -1,4 +1,4 @@
FROM golang:1.17 AS build
FROM golang:1.19 AS build
ARG HTTP_PROXY=
ARG HTTPS_PROXY=
@ -14,13 +14,8 @@ COPY . /src
WORKDIR /src
RUN cp -f misc/docker/config-patch.yml misc/release/config-patch.yml
RUN go get github.com/krishicks/yaml-patch/cmd/yaml-patch
RUN npm install \
&& make vendor \
&& echo "---" > ./misc/release/config-patch.yml \
RUN cp -f misc/docker/config-patch.txt misc/release/config-patch.txt \
&& npm install \
&& make ARCH_TARGETS=amd64 release
FROM busybox
@ -31,4 +26,6 @@ WORKDIR /app
RUN mkdir -p /app
EXPOSE 8080 2525
CMD ["bin/fake-smtp", "--config", "config.yml"]

View File

@ -0,0 +1 @@
.smtp.debug = false

View File

@ -1,4 +0,0 @@
---
- op: replace
path: /smtp/debug
value: false