2016-02-10 00:28:01 +00:00
|
|
|
# Copyright 2014 The Camlistore Authors.
|
|
|
|
# Generic purpose Camlistore image, that builds the server (camlistored)
|
|
|
|
# and the command-line clients (camput, camget, camtool, and cammount).
|
2014-02-09 22:28:05 +00:00
|
|
|
|
2016-02-10 00:28:01 +00:00
|
|
|
# See misc/docker/go to generate camlistore/go
|
|
|
|
FROM camlistore/go
|
2014-02-09 22:28:05 +00:00
|
|
|
|
|
|
|
MAINTAINER camlistore <camlistore@googlegroups.com>
|
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
2016-02-10 00:28:01 +00:00
|
|
|
RUN apt-get -y --no-install-recommends install adduser
|
2014-02-09 22:28:05 +00:00
|
|
|
|
|
|
|
RUN adduser --disabled-password --quiet --gecos Camli camli
|
|
|
|
RUN mkdir -p /gopath/bin
|
|
|
|
RUN chown camli.camli /gopath/bin
|
|
|
|
RUN mkdir -p /gopath/pkg
|
|
|
|
RUN chown camli.camli /gopath/pkg
|
|
|
|
|
2016-02-10 00:28:01 +00:00
|
|
|
RUN mkdir -p /gopath/src
|
|
|
|
ADD internal /gopath/src/camlistore.org/internal
|
|
|
|
ADD app /gopath/src/camlistore.org/app
|
|
|
|
ADD dev /gopath/src/camlistore.org/dev
|
|
|
|
ADD cmd /gopath/src/camlistore.org/cmd
|
|
|
|
ADD vendor /gopath/src/camlistore.org/vendor
|
|
|
|
ADD server /gopath/src/camlistore.org/server
|
|
|
|
ADD pkg /gopath/src/camlistore.org/pkg
|
|
|
|
ADD make.go /gopath/src/camlistore.org/make.go
|
|
|
|
RUN echo 'dev' > /gopath/src/camlistore.org/VERSION
|
|
|
|
|
|
|
|
ENV GOROOT /usr/local/go
|
|
|
|
ENV PATH $GOROOT/bin:/gopath/bin:$PATH
|
2014-02-09 22:28:05 +00:00
|
|
|
ENV GOPATH /gopath
|
2016-02-10 00:28:01 +00:00
|
|
|
ENV CGO_ENABLED 0
|
2017-02-28 00:39:35 +00:00
|
|
|
ENV CAMLI_GOPHERJS_GOROOT /usr/local/go
|
2014-02-09 22:28:05 +00:00
|
|
|
|
2016-02-10 00:28:01 +00:00
|
|
|
WORKDIR /gopath/src/camlistore.org
|
2016-06-09 14:20:31 +00:00
|
|
|
RUN go run make.go
|
|
|
|
RUN cp -a /gopath/src/camlistore.org/bin/* /gopath/bin/
|
2014-02-09 22:28:05 +00:00
|
|
|
|
2014-02-10 02:01:25 +00:00
|
|
|
ENV USER camli
|
|
|
|
ENV HOME /home/camli
|
2014-02-09 22:28:05 +00:00
|
|
|
WORKDIR /home/camli
|
|
|
|
|
|
|
|
EXPOSE 80 443 3179 8080
|
|
|
|
|
|
|
|
CMD /bin/bash
|