Initial commit

This commit is contained in:
2020-04-17 17:53:01 +02:00
commit 423843c2d7
49 changed files with 9669 additions and 0 deletions

27
misc/docker/Dockerfile Normal file
View File

@ -0,0 +1,27 @@
FROM golang:1.13 AS build
ARG HTTP_PROXY=
ARG HTTPS_PROXY=
ARG http_proxy=
ARG https_proxy=
RUN apt-get update && apt-get install -y build-essential git bash curl
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - \
&& apt-get install -y nodejs
COPY . /src
WORKDIR /src
RUN npm install \
&& make vendor \
&& make ARCH_TARGETS=amd64 release
FROM busybox
COPY --from=build /src/release/fake-smtp-linux-amd64 /app
WORKDIR /app
CMD ["bin/fake-smtp", "--config", "fake-smtp.yml"]