forked from nxtbn-com/nxtbn
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (23 loc) · 733 Bytes
/
Dockerfile
File metadata and controls
37 lines (23 loc) · 733 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
37
FROM python:3.10-slim-buster
COPY ./Pipfile /Pipfile
COPY ./Pipfile.lock /Pipfile.lock
RUN apt-get update --yes --quiet && apt-get install --yes --quiet --no-install-recommends \
build-essential \
libpq-dev \
libmariadbclient-dev \
libjpeg62-turbo-dev \
zlib1g-dev \
libwebp-dev \
netcat \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir -q 'pipenv==2020.11.15' && pipenv install --deploy --system
RUN mkdir /backend
COPY ./ /backend
WORKDIR /backend
RUN chmod +x /backend/scripts/entrypoint.sh
RUN mkdir -p /backend/media
RUN chmod +x /backend/media
CMD ["/backend/scripts/entrypoint.sh"]
# docker build -t nxtbn/nxtbn:latest .
# docker login
# docker push nxtbn/nxtbn:latest