| |
@@ -8,8 +8,6 @@
|
| |
# The caller should build a waiverdb RPM package using ./rpmbuild.sh and then pass it in this arg.
|
| |
ARG waiverdb_rpm
|
| |
ARG waiverdb_common_rpm
|
| |
- # The caller can optionally provide a cacert url
|
| |
- ARG cacert_url=undefined
|
| |
|
| |
COPY $waiverdb_rpm /tmp
|
| |
COPY $waiverdb_common_rpm /tmp
|
| |
@@ -22,15 +20,11 @@
|
| |
&& dnf -y clean all \
|
| |
&& rm -f /tmp/*
|
| |
|
| |
- RUN if [ "$cacert_url" != "undefined" ]; then \
|
| |
- cd /etc/pki/ca-trust/source/anchors \
|
| |
- && curl -O --insecure $cacert_url \
|
| |
- && update-ca-trust extract; \
|
| |
- fi
|
| |
+ COPY docker/ /docker/
|
| |
+ # Allow a non-root user to install a custom root CA at run-time
|
| |
+ RUN chmod g+w /etc/pki/tls/certs/ca-bundle.crt
|
| |
|
| |
USER 1001
|
| |
EXPOSE 8080
|
| |
-
|
| |
+ ENTRYPOINT ["/docker/docker-entrypoint.sh"]
|
| |
CMD ["/usr/bin/gunicorn-3", "--bind", "0.0.0.0:8080", "--access-logfile", "-", "--enable-stdio-inheritance", "waiverdb.wsgi:app"]
|
| |
-
|
| |
-
|
| |
Seems the user in container is in
root
group. Is that safe?How does the
USER 1001
work without callinguseradd
?