21 lines
313 B
Docker
21 lines
313 B
Docker
|
FROM golang:1.16.0-buster as BUILD
|
||
|
|
||
|
COPY . mastogem
|
||
|
|
||
|
RUN cd mastogem && \
|
||
|
go build -o /mastogem
|
||
|
|
||
|
FROM debian:buster-slim
|
||
|
|
||
|
COPY --from=BUILD /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||
|
|
||
|
COPY --from=BUILD /mastogem /mastogem
|
||
|
|
||
|
COPY start.sh /start.sh
|
||
|
|
||
|
RUN chmod +x /start.sh
|
||
|
|
||
|
EXPOSE 1965
|
||
|
|
||
|
CMD "/start.sh"
|