forked from unisonweb/unison
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Push docker images to github when we release
- Loading branch information
Showing
2 changed files
with
37 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
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,23 @@ | ||
FROM debian:stable | ||
|
||
RUN adduser --home /unison --disabled-password unison | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y git libncurses5 less locales fzf && \ | ||
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \ | ||
dpkg-reconfigure --frontend=noninteractive locales && \ | ||
update-locale LANG=en_US.UTF-8 | ||
|
||
|
||
COPY /tmp/ucm/ucm /usr/local/bin/ucm | ||
COPY /tmp/ucm/ui /usr/local/share/ucm | ||
|
||
ENV UCM_WEB_UI=/usr/local/share/ucm | ||
ENV UCM_PORT=8080 | ||
ENV UCM_TOKEN=pub | ||
|
||
RUN chmod 555 /usr/local/bin/ucm | ||
|
||
EXPOSE 8080 | ||
ENTRYPOINT ["/usr/local/bin/ucm"] | ||
CMD ["--codebase","/unison"] |