Peter Kurfer
d70ba748f5
- merge packages to get a more concise layout because plugins are no more and therefore there's not a lot to be exported - fix test logger - rework config parsing to be easier and more transparent - remove unnecessary APIs because dynamic endpoint handling is rather a won't implement
20 lines
No EOL
421 B
Docker
20 lines
No EOL
421 B
Docker
FROM golang:1.15-alpine as build
|
|
|
|
WORKDIR /app
|
|
|
|
COPY ./ ./
|
|
|
|
RUN go build -o inetmock ./cmd/inetmock
|
|
|
|
FROM alpine:3.13
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=build /app/inetmock ./
|
|
COPY --from=build /app/config-container.yaml /etc/inetmock/config.yaml
|
|
COPY --from=build /app/assets/fakeFiles /var/lib/inetmock/fakeFiles
|
|
COPY --from=build /app/assets/demoCA /var/lib/inetmock/ca
|
|
|
|
RUN mkdir -p /var/run/inetmock
|
|
|
|
CMD /app/inetmock serve |