-
Notifications
You must be signed in to change notification settings - Fork 6
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 #30 from brondsem/vagrant_docker
Convert vagrant to docker
- Loading branch information
Showing
10 changed files
with
112 additions
and
166 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,5 +1,4 @@ | ||
data | ||
*.pyc | ||
*.pyo | ||
.vagrant/ | ||
.idea/ | ||
.idea/ |
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,38 @@ | ||
# Bionic | ||
FROM ubuntu:18.04 | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
ENV BASE=/opt/waznexserver | ||
ENV CODE=$BASE/WaznexServer | ||
ENV VENV=$BASE/env | ||
ENV PIP=$VENV/bin/pip | ||
ENV PYTHON=$VENV/bin/python | ||
|
||
RUN mkdir $BASE | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y nginx python-dev libjpeg62 libjpeg-dev libfreetype6 libfreetype6-dev libtiff5 libtiff5-dev libwebp6 libwebp-dev zlib1g-dev run-one | ||
RUN apt-get install -y curl \ | ||
&& curl https://bootstrap.pypa.io/pip/2.7/get-pip.py | python \ | ||
&& pip --version | ||
RUN pip install -U pip | ||
RUN python -m pip install -U virtualenv | ||
RUN virtualenv -p python2.7 $VENV | ||
|
||
WORKDIR $CODE | ||
|
||
COPY ./requirements.txt $CODE/ | ||
RUN $PIP install -r requirements.txt | ||
|
||
COPY . $CODE | ||
|
||
ENV PATH=$VENV/bin:$PATH | ||
|
||
RUN waznexserver/utils.py # inits data | ||
|
||
EXPOSE 8080 | ||
|
||
# using array for CMD avoids shell intermediary, so that Ctrl-C works | ||
RUN chmod +x waznexserver/waznexserver.py | ||
CMD ["waznexserver/waznexserver.py"] |
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
This file was deleted.
Oops, something went wrong.
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
Empty file.
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
Empty file.
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