forked from apple/ccs-calendarserver
Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Dockerfile | ||
.git | ||
data | ||
conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM debian:jessie-slim | ||
|
||
# Install prerequisites | ||
RUN apt-get update \ | ||
&& apt-get upgrade -y \ | ||
&& apt-get install -y libsasl2-dev python-dev libldap2-dev libssl-dev curl \ | ||
make gcc bzip2 libreadline-dev zlib1g-dev libkrb5-dev \ | ||
python-pip libffi-dev libffi6 memcached git python-xattr | ||
|
||
ADD . /opt/ccs | ||
WORKDIR /opt/ccs | ||
|
||
# Run configuration script | ||
RUN ./bin/develop | ||
|
||
# Create a new user. The UUID can be changed, but it is necessary to set one if | ||
# you want to mount the /data folder as a Docker volume | ||
RUN useradd ccs-user -d /opt/ccs -u 1001 | ||
RUN chown -R ccs-user:ccs-user /opt/ccs | ||
|
||
USER ccs-user | ||
CMD ["./bin/run", "-n"] |