-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile.dev
More file actions
35 lines (23 loc) · 825 Bytes
/
Copy pathDockerfile.dev
File metadata and controls
35 lines (23 loc) · 825 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
FROM python:3.8-buster
LABEL maintainer="Oskar Skoog <oskar@osd.se>"
RUN useradd --system --create-home --shell /bin/bash jskom
WORKDIR /usr/src/app
COPY requirements-dev.txt ./
RUN pip3 install --no-cache-dir -r requirements-dev.txt
COPY jskom jskom
RUN rm -rf jskom/static/.webassets-cache
RUN rm -rf jskom/static/gen
RUN mkdir -p jskom/static/.webassets-cache
RUN mkdir -p jskom/static/gen
RUN chmod u+w jskom/static/.webassets-cache
RUN chmod u+w jskom/static/gen
RUN chown jskom jskom/static/.webassets-cache
RUN chown jskom jskom/static/gen
COPY configs/httpkom-debug.cfg /httpkom.cfg
COPY configs/debug.cfg /jskom.cfg
ENV HTTPKOM_SETTINGS="/httpkom.cfg"
ENV JSKOM_SETTINGS="/jskom.cfg"
USER jskom
EXPOSE 5000
ENTRYPOINT ["/usr/local/bin/python3", "-m", "jskom"]
CMD ["--port", "5000", "--host", "0.0.0.0"]