forked from perkeep/perkeep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
45 lines (35 loc) · 1.28 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# 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 <[email protected]>
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 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
ENV GOPATH /gopath
ENV CGO_ENABLED 0
WORKDIR /gopath/src/camlistore.org
RUN go run make.go
RUN cp -a /gopath/src/camlistore.org/bin/* /gopath/bin/
ENV USER camli
ENV HOME /home/camli
WORKDIR /home/camli
EXPOSE 80 443 3179 8080
CMD /bin/bash