Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (11 sloc) 320 Bytes
FROM golang:latest as build
RUN mkdir /app
COPY . /app/
WORKDIR /app
RUN GO111MODULE=on CGO_ENABLED=0 GOOS=linux go build -ldflags "-X main.configPath=" -a -o sprawl .
FROM scratch
COPY --from=build /app/sprawl /sprawl
ENV SPRAWL_DATABASE_PATH /sprawl/data
ENV SPRAWL_API_PORT 1337
EXPOSE 1337
CMD ["/sprawl"]
You can’t perform that action at this time.