1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00
wakapi/Dockerfile
2019-10-07 23:41:00 +01:00

14 lines
391 B
Docker

FROM golang:alpine AS build-env
ADD . /src
RUN cd /src && go build -o wakapi
# final stage
FROM alpine
WORKDIR /app
COPY --from=build-env /src/wakapi /app/
COPY --from=build-env /src/config.ini /app/
COPY --from=build-env /src/.env.example /app/.env
RUN sed -i 's/listen = 127.0.0.1/listen = 0.0.0.0/g' /app/config.ini
ADD static /app/static
ADD wait-for-it.sh .
ENTRYPOINT ./wait-for-it.sh