Skip to content
Permalink
8dcd9c7af4
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
28 lines (21 sloc) 738 Bytes
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" ]