blob: e8d3957422f555ed575f9940dd026c96d544c625 [file] [log] [blame]
# Copyright 2014 The Camlistore Authors.
# Generic purpose Camlistore image, that builds the server (camlistored)
# and the command-line clients (camput, camget, camtool, and cammount).
# See misc/docker/go to generate camlistore/go
FROM camlistore/go
MAINTAINER camlistore <>
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -y --no-install-recommends install adduser
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
RUN mkdir -p /gopath/src
ADD depcheck /gopath/src/
ADD third_party /gopath/src/
ADD internal /gopath/src/
ADD app /gopath/src/
ADD dev /gopath/src/
ADD cmd /gopath/src/
ADD vendor /gopath/src/
ADD server /gopath/src/
ADD pkg /gopath/src/
ADD make.go /gopath/src/
RUN echo 'dev' > /gopath/src/
ENV GOROOT /usr/local/go
ENV PATH $GOROOT/bin:/gopath/bin:$PATH
ENV GOPATH /gopath
WORKDIR /gopath/src/
RUN go run make.go --use_gopath=true
ENV USER camli
ENV HOME /home/camli
WORKDIR /home/camli
EXPOSE 80 443 3179 8080
CMD /bin/bash