diff --git a/fedilogue/Dockerfile b/fedilogue/Dockerfile new file mode 100644 index 0000000..a4723a9 --- /dev/null +++ b/fedilogue/Dockerfile @@ -0,0 +1,8 @@ +FROM golang:alpine +COPY . /app +WORKDIR /app +RUN apk add postgresql-client +RUN go build . +ENV DATABASE_URL "postgres://fedilogue:fedilogue@db/fedilogue" +ENV PGPASSWORD "fedilogue" +ENTRYPOINT ["./entrypoint.sh"] diff --git a/restapi/entrypoint.sh b/restapi/entrypoint.sh new file mode 100755 index 0000000..f1cabf2 --- /dev/null +++ b/restapi/entrypoint.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +sleep 5 + +./restapi