Initial commit
This commit is contained in:
26
web/Dockerfile
Normal file
26
web/Dockerfile
Normal file
@ -0,0 +1,26 @@
|
||||
# pull official base image
|
||||
FROM python:3.9.2
|
||||
|
||||
# set environment varibles
|
||||
ENV PYTHONDONTWRITEBYTECODE 1
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
|
||||
# set work directory
|
||||
WORKDIR /usr/src/palindrome-app
|
||||
|
||||
# install dependencies
|
||||
RUN pip install --upgrade pip
|
||||
|
||||
COPY ./requirements.txt /usr/src/palindrome-app/requirements.txt
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
# copy project
|
||||
COPY . /usr/src/palindrome-app/
|
||||
|
||||
# add wait for it
|
||||
RUN git clone https://github.com/vishnubob/wait-for-it.git
|
||||
RUN chmod a+x wait-for-it/wait-for-it.sh
|
||||
|
||||
# add entry point
|
||||
COPY ./entrypoint.sh entrypoint.sh
|
||||
ENTRYPOINT ["./entrypoint.sh"]
|
Reference in New Issue
Block a user