-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (24 loc) · 730 Bytes
/
Dockerfile
File metadata and controls
36 lines (24 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM python:3.11-slim-buster
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
ENV APP_HOME=/build
RUN mkdir $APP_HOME
RUN mkdir $APP_HOME/staticfiles
LABEL maintainer='kayprogrammer1@gmail.com'
LABEL description="Development image for Socialnet API V1 Project"
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# We create folder named build for our app.
WORKDIR $APP_HOME
COPY ./docker ./docker
COPY ./.env .
COPY ./requirements.txt .
# We copy our app folder to the /build
RUN pip install -r requirements.txt
COPY ./docker/entrypoint /entrypoint
RUN sed -i 's/\r$//g' /entrypoint
RUN chmod +x /entrypoint
COPY ./docker/start /start
RUN sed -i 's/\r$//g' /start
RUN chmod +x /start
ENTRYPOINT [ "/entrypoint" ]