-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.dev
42 lines (35 loc) · 1.31 KB
/
Dockerfile.dev
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
38
39
40
41
42
FROM alpine:3.18.2
ARG DATE_CREATED
ARG VERSION
LABEL maintainer="Arash Hatami <[email protected]>"
LABEL org.opencontainers.image.created=$DATE_CREATED
LABEL org.opencontainers.image.version=$VERSION
LABEL org.opencontainers.image.authors="hatamiarash7"
LABEL org.opencontainers.image.vendor="hatamiarash7"
LABEL org.opencontainers.image.title="Nikas"
LABEL org.opencontainers.image.description="The first Persian comment system"
LABEL org.opencontainers.image.source="https://github.com/Nikas-Project/Server"
COPY requirements.txt /tmp/requirements.txt
RUN apk upgrade --no-cache \
&& apk add --no-cache -t build-dependencies \
gcc \
g++ \
python3-dev \
libffi-dev \
build-base \
&& apk add --no-cache \
musl-dev \
python3 \
py3-pip \
sqlite \
openssl \
openssl-dev \
ca-certificates \
&& pip3 install --upgrade --no-cache --no-cache-dir --ignore-installed pip wheel \
&& pip3 install --no-cache --no-cache-dir -r /tmp/requirements.txt \
&& pip3 install --no-cache --no-cache-dir --ignore-installed --index-url https://test.pypi.org/simple/ --extra-index-url=https://pypi.org/simple/ nikas==$VERSION \
&& apk del build-dependencies \
&& rm -rf /tmp/* /var/cache/apk/*
EXPOSE 8080
VOLUME /db /config
CMD ["nikas", "-c", "/config/nikas.conf", "run"]