20 lines
397 B
Docker
20 lines
397 B
Docker
# Then build the actual amelie docker image
|
|
FROM python:latest
|
|
|
|
# Set /usr/src/app as startup working directory
|
|
WORKDIR /usr/src/app
|
|
|
|
# Install python requirements
|
|
COPY requirements.txt ./
|
|
RUN pip install --no-cache-dir --upgrade pip
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copy sources
|
|
COPY . .
|
|
|
|
# Expose the web port
|
|
EXPOSE 8000
|
|
|
|
# Start the website
|
|
CMD ["/usr/src/app/start.sh"]
|
|
|