Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
smarthotels/web/Dockerfile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
28 lines (21 sloc)
738 Bytes
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
FROM ubuntu | |
# Update APT repos | |
RUN apt-get update --fix-missing | |
# Postgresql library | |
RUN apt-get install -y libpq-dev postgresql-client | |
# Python & Associated libraries | |
RUN apt-get install -y python3 python3-pip python3-dev | |
RUN pip3 install --upgrade pip | |
ADD requirements.txt /src/requirements.txt | |
RUN pip install -r /src/requirements.txt | |
# Copy application files. | |
COPY index.py /src/index.py | |
COPY static/ManagementApp.html /src/static/ManagementApp.html | |
COPY postgresLibrary.py /src/postgresLibrary.py | |
COPY peripherals.py /src/peripherals.py | |
COPY lights/ /src/lights/ | |
# Add entrypoint | |
COPY docker-entrypoint.sh /usr/local/bin/ | |
# backwards compat | |
RUN ln -s usr/local/bin/docker-entrypoint.sh / | |
ENTRYPOINT [ "docker-entrypoint.sh" ] |