Contains the Concourse pipeline definition for building a line-server container
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
791 B

  1. FROM golang:alpine3.8 AS build
  2. COPY . /go/src/github.com/andreimarcu/linx-server
  3. WORKDIR /go/src/github.com/andreimarcu/linx-server
  4. RUN set -ex \
  5. && apk add --no-cache --virtual .build-deps git \
  6. && go get -v . \
  7. && apk del .build-deps
  8. FROM alpine:3.8
  9. COPY --from=build /go/bin/linx-server /usr/local/bin/linx-server
  10. ENV GOPATH /go
  11. COPY static /go/src/github.com/andreimarcu/linx-server/static/
  12. COPY templates /go/src/github.com/andreimarcu/linx-server/templates/
  13. RUN mkdir -p /data/files && mkdir -p /data/meta && chown -R 65534:65534 /data
  14. VOLUME ["/data/files", "/data/meta"]
  15. EXPOSE 8080
  16. USER nobody
  17. ENTRYPOINT ["/usr/local/bin/linx-server", "-bind=0.0.0.0:8080", "-filespath=/data/files/", "-metapath=/data/meta/"]
  18. CMD ["-sitename=linx", "-allowhotlink"]