Fix Docker packaging
This commit is contained in:
parent
f2530bf390
commit
88660cdd78
|
@ -3,6 +3,6 @@
|
||||||
/vendor
|
/vendor
|
||||||
/data
|
/data
|
||||||
/bin
|
/bin
|
||||||
/misc/docker
|
/misc/docker/Dockerfile
|
||||||
/.env
|
/.env
|
||||||
/.env.dist
|
/.env.dist
|
|
@ -14,8 +14,13 @@ COPY . /src
|
||||||
|
|
||||||
WORKDIR /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 \
|
RUN npm install \
|
||||||
&& make vendor \
|
&& make vendor \
|
||||||
|
&& echo "---" > ./misc/release/config-patch.yml \
|
||||||
&& make ARCH_TARGETS=amd64 release
|
&& make ARCH_TARGETS=amd64 release
|
||||||
|
|
||||||
FROM busybox
|
FROM busybox
|
||||||
|
@ -24,4 +29,6 @@ COPY --from=build /src/release/fake-smtp-linux-amd64 /app
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
CMD ["bin/fake-smtp", "--config", "fake-smtp.yml"]
|
RUN mkdir -p /app
|
||||||
|
|
||||||
|
CMD ["bin/fake-smtp", "--config", "config.yml"]
|
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
- op: replace
|
||||||
|
path: /smtp/debug
|
||||||
|
value: false
|
Loading…
Reference in New Issue