-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: finalize Dockerfile and docs/docker.md
- Loading branch information
Showing
4 changed files
with
39 additions
and
14 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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
/vendor/ | ||
/output/ | ||
/.git/ | ||
/satis.json | ||
|
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 |
---|---|---|
@@ -1,13 +1,32 @@ | ||
FROM composer:latest | ||
|
||
# to experiment remote storage of public content | ||
RUN curl https://rclone.org/install.sh | bash | ||
ARG UID=1000 | ||
ARG GID=1000 | ||
RUN addgroup --gid "$GID" satis \ | ||
&& adduser \ | ||
--disabled-password \ | ||
--gecos "" \ | ||
--home "/home/satis-gitlab" \ | ||
--ingroup "satis" \ | ||
--uid "$UID" \ | ||
satis | ||
|
||
RUN mkdir -p /opt/satis-gitlab | ||
WORKDIR /opt/satis-gitlab | ||
COPY composer.json . | ||
COPY composer.lock . | ||
RUN composer install | ||
|
||
COPY . /opt/satis-gitlab | ||
WORKDIR /opt/satis-gitlab | ||
COPY src/ src | ||
COPY bin/ bin | ||
|
||
RUN mkdir -p /opt/satis-gitlab/config \ | ||
&& chown -R satis:satis /opt/satis-gitlab/config | ||
VOLUME /opt/satis-gitlab/config | ||
|
||
RUN mkdir -p /opt/satis-gitlab/public \ | ||
&& chown -R satis:satis /opt/satis-gitlab/public | ||
VOLUME /opt/satis-gitlab/public | ||
|
||
USER satis |
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
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