-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
22 lines (20 loc) · 971 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Base image
FROM python:3.8.0-alpine
# Image propietary
LABEL maintainer="Aurelio Vivas [email protected]"
# Working directory inside the container
WORKDIR /usr/src/app
# Installing packages
RUN apk add --no-cache gcc musl-dev
# Copy the project into the container current workdir
COPY . .
# Installing requirements
RUN pip install --no-cache-dir -r ./api/requirements.txt
# Informs Docker that the container listens on the specified network ports at runtime
# The EXPOSE instruction does not actually publish the port. It functions as a type of
# documentation between the person who builds the image and the person who runs the container,
# about which ports are intended to be published. To actually publish the port when running
# the container, use the -p flag on docker run to publish and map one or more ports, or the -P
# flag to publish all exposed ports and map them to to high-order ports.
EXPOSE 5001
CMD ["/bin/sh", "entrypoint.sh"]