forked from OmniDB/OmniDB
-
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.
- Loading branch information
1 parent
7f74be6
commit fec9ee1
Showing
1 changed file
with
8 additions
and
13 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,26 +1,21 @@ | ||
FROM python:3.5-alpine | ||
FROM python:3.5 | ||
# -alpine | ||
|
||
# Environment stuff | ||
ENV OMNIDB_HOME /app | ||
ENV OMNIDB_PORT 8000 | ||
|
||
|
||
# Copy the project | ||
RUN mkdir $OMNIDB_HOME && \ | ||
apk --update add build-base \ | ||
postgresql-dev | ||
RUN mkdir $OMNIDB_HOME | ||
COPY . $OMNIDB_HOME/ | ||
WORKDIR $OMNIDB_HOME/OmniDB | ||
|
||
# Install deppendencies | ||
RUN pip3 install -r ../requirements.txt && \ | ||
pip3 install -r ../requirements.txt && \ | ||
apk del build-base \ | ||
postgresql-dev | ||
|
||
# # Install deppendencies | ||
RUN pip3 install pip --upgrade && \ | ||
pip3 install -r ../requirements.txt | ||
|
||
# Start server | ||
EXPOSE $OMNIDB_PORT | ||
ENTRYPOINT ["python3"] | ||
# ENTRYPOINT ["sh"] | ||
CMD ["manage.py", "runserver"] | ||
# | ||
CMD ["manage.py", "runserver"] |