Archived
Harden production launch defaults
This commit is contained in:
1 parent
8b80e0e3d2
commit
2203852170
8 files changed
+176
-30
No files matched your search
@@ -4,6 +4,10 @@ WORKDIR /app
|
||||
COPY pyproject.toml README.md /app/
|
||||
COPY router_dyndns /app/router_dyndns
|
||||
RUN pip install --no-cache-dir .
|
||||
RUN adduser --system --group --home /app routerpulse \
|
||||
&& mkdir -p /data \
|
||||
&& chown -R routerpulse:routerpulse /app /data
|
||||
USER routerpulse
|
||||
|
||||
EXPOSE 8080
|
||||
CMD ["router-dyndns", "serve", "--host", "0.0.0.0", "--port", "8080"]
|
||||
Reference in new issue
Block a user