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

fix: initialise data/ dir in Docker

This commit is contained in:
Steven Tang 2022-08-19 21:55:58 +10:00
parent 037ad7b9b1
commit df5fe6e623
No known key found for this signature in database
GPG Key ID: C7B961512342C50E

View File

@ -13,12 +13,13 @@ ADD . .
RUN go build -ldflags "-s -w" -v -o wakapi main.go
WORKDIR /app
RUN cp /src/wakapi . && \
cp /src/config.default.yml config.yml && \
sed -i 's/listen_ipv6: ::1/listen_ipv6: /g' config.yml && \
cp /src/wait-for-it.sh . && \
cp /src/entrypoint.sh .
WORKDIR /staging
RUN mkdir ./data ./app && \
cp /src/wakapi app/ && \
cp /src/config.default.yml app/config.yml && \
sed -i 's/listen_ipv6: ::1/listen_ipv6: /g' app/config.yml && \
cp /src/wait-for-it.sh app/ && \
cp /src/entrypoint.sh app/
# Run Stage
@ -43,7 +44,7 @@ ENV ENVIRONMENT=prod \
WAKAPI_INSECURE_COOKIES='true' \
WAKAPI_ALLOW_SIGNUP='true'
COPY --from=build-env /app .
COPY --from=build-env /staging /
EXPOSE 3000