Skip to content

Commit 06d8a7c

Browse files
authored
Create Dockerfile.ocs
1 parent f536c5e commit 06d8a7c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Dockerfile.ocs

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM debian:jessie
2+
ENV HOME_DIR /var/ocs_home
3+
ENV WORK_DIR /var/ocs_home/src
4+
5+
RUN apt-get update -qq \
6+
&& apt-get install -qq -y --no-install-recommends git ca-certificates php5-cli php5-pgsql \
7+
&& rm -rf /var/lib/apt/lists/*
8+
9+
RUN useradd -m -d $HOME_DIR -s /bin/bash ocs
10+
USER ocs
11+
12+
RUN git clone -b ocs-dev-2_3 https://github.com/Lax/ocs.git $WORK_DIR
13+
WORKDIR $WORK_DIR
14+
RUN git submodule update --init --recursive
15+
RUN cp config.TEMPLATE.inc.php config.inc.php
16+
EXPOSE 8000
17+
CMD ["php", "-S", "0.0.0.0:8000"]

0 commit comments

Comments
 (0)