Files
wanderer/db/Dockerfile
Christian Beutel 1b493f576e adds svelte API
2024-03-09 16:46:02 +01:00

22 lines
355 B
Docker

FROM golang:1.22-alpine
RUN apk add build-base
WORKDIR /
COPY go.mod ./
COPY go.sum ./
COPY migrations ./migrations
RUN go mod download
COPY *.go ./
RUN go build -o /pocketbase
RUN /pocketbase migrate
ENV MEILI_URL=http://localhost:7700
ENV MEILI_MASTER_KEY=
EXPOSE 8090
ENTRYPOINT ["/pocketbase", "serve", "--http=0.0.0.0:8090", "--dir=/pb_data"]