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.

28 lines
828 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. ENV SSL_CERT_FILE /etc/ssl/cert.pem
  12. COPY static /go/src/github.com/andreimarcu/linx-server/static/
  13. COPY templates /go/src/github.com/andreimarcu/linx-server/templates/
  14. RUN mkdir -p /data/files && mkdir -p /data/meta && chown -R 65534:65534 /data
  15. VOLUME ["/data/files", "/data/meta"]
  16. EXPOSE 8080
  17. USER nobody
  18. ENTRYPOINT ["/usr/local/bin/linx-server", "-bind=0.0.0.0:8080", "-filespath=/data/files/", "-metapath=/data/meta/"]
  19. CMD ["-sitename=linx", "-allowhotlink"]