-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #261 from grycap/bin-fix
Binary fixes
- Loading branch information
Showing
5 changed files
with
5,818 additions
and
15 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,23 +1,18 @@ | ||
FROM python:3.7.0-stretch | ||
FROM ubuntu:latest | ||
|
||
MAINTAINER @iMerica <[email protected]> | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
zip \ | ||
RUN apt-get update && apt-get install -y wget \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN addgroup --system scar && adduser --system --group scar | ||
|
||
RUN git clone --branch master --depth 1 https://github.com/grycap/scar.git /usr/bin/scar && \ | ||
pip install -r /usr/bin/scar/requirements.txt | ||
RUN addgroup --system scar && adduser --system --group scar | ||
|
||
RUN touch /scar.log && chown scar /scar.log | ||
|
||
ENV PYTHONUNBUFFERED=1 | ||
RUN wget https://github.com/grycap/scar/releases/download/v1.0.0/scar -O /usr/bin/scar \ | ||
&& chmod +x /usr/bin/scar | ||
|
||
USER scar | ||
|
||
ENTRYPOINT ["python3", "/usr/bin/scar/scar.py"] | ||
ENV SCAR_LOG_PATH ~/ | ||
|
||
ENTRYPOINT ["/usr/bin/scar"] | ||
|
||
|
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
Binary file not shown.
Oops, something went wrong.