-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Dockerfile to simplify installation
- Loading branch information
Showing
1 changed file
with
16 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,16 @@ | ||
FROM python:3.4-slim | ||
WORKDIR /app | ||
COPY ./images /app/images | ||
COPY ./libgrabsite /app/libgrabsite | ||
COPY ./grab-site ./gs-dump-urls ./gs-server ./setup.py /app/ | ||
RUN apt-get update | ||
RUN apt-get install -y build-essential | ||
RUN pip3 install ./ | ||
RUN apt-get purge -y build-essential | ||
RUN apt-get autoremove -y | ||
RUN apt-get clean | ||
RUN rm -R /root/.cache | ||
VOLUME ["/data"] | ||
WORKDIR /data | ||
EXPOSE 29000 | ||
CMD ["python", "/app/gs-server"] |