Skip to content

Commit

Permalink
add web300-6
Browse files Browse the repository at this point in the history
  • Loading branch information
wonderkun committed Aug 12, 2018
1 parent 1e1e4cb commit 5b08d23
Show file tree
Hide file tree
Showing 16 changed files with 11,354 additions and 0 deletions.
26 changes: 26 additions & 0 deletions web300-6/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM ubuntu:16.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -y update && \
apt-get -y install vim python sqlite3 python-pip&& \
apt-get -y autoremove && \
rm -rf /var/lib/apt/lists/*

COPY ./src /src
COPY ./start.sh /start.sh
COPY ./pastebin.sql /tmp/pastebin.sql
COPY ./requirements.txt /tmp/requirements.txt
RUN chmod +x /start.sh

RUN /usr/bin/pip install --upgrade pip && \
pip install flask && \
pip install PyJWT && \
sqlite3 /tmp/pastebin.db < /tmp/pastebin.sql && \
pip install -r /tmp/requirements.txt && \
rm /usr/local/lib/python2.7/dist-packages/jwt/algorithms.pyc

COPY ./algorithms.py /usr/local/lib/python2.7/dist-packages/jwt/algorithms.py

WORKDIR /src/

EXPOSE 5000
CMD ["/start.sh"]
Loading

0 comments on commit 5b08d23

Please sign in to comment.