summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-06-03 15:57:03 +0100
committerMatthew Lemon <y@yulqen.org>2024-06-03 15:57:03 +0100
commit2851046fa6e18069120998781ef5391642920f22 (patch)
treea65656cfc205806c0807b18227d5f0df92b86b7e
parent308a79cb6843eaa5e31ce3a792badfe905291715 (diff)
More changes to Docker file to get RHEL to build and alias file
-rw-r--r--Dockerfile8
-rw-r--r--alias1
2 files changed, 4 insertions, 5 deletions
diff --git a/Dockerfile b/Dockerfile
index 62df5e1..10eea16 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,7 +4,9 @@ FROM registry.access.redhat.com/ubi8/python-38
USER 0
# Install system dependencies
-RUN microdnf install -y postgresql-devel gcc
+RUN yum install -y postgresql-devel gcc && \
+ yum clean all && \
+ rm -rf /var/cache/yum
WORKDIR /app
@@ -21,7 +23,3 @@ RUN mkdir -p /app/static/css /app/static/js /app/static/img
# Switch to non-root user
USER 1001
-
-# Start app
-CMD ["gunicorn", "ded.wsgi:application", "--bind", "0.0.0:8000"]
-
diff --git a/alias b/alias
new file mode 100644
index 0000000..3741999
--- /dev/null
+++ b/alias
@@ -0,0 +1 @@
+alias gitty='git pull && git checkout main && git pull && git merge postgres-migration && git checkout postgres-migration && git rebase main && git push'