summaryrefslogtreecommitdiff
path: root/build/postgrest/Dockerfile
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-12-23 11:13:27 -0500
committerFreya Murphy <freya@freyacat.org>2024-12-23 11:13:27 -0500
commit5a2ba9c2e7605bb788bc406184547d22c6436867 (patch)
treecbd988d534e8a8593a31d70571222443f80da0b3 /build/postgrest/Dockerfile
parentfix about modal (diff)
downloadxssbook2-5a2ba9c2e7605bb788bc406184547d22c6436867.tar.gz
xssbook2-5a2ba9c2e7605bb788bc406184547d22c6436867.tar.bz2
xssbook2-5a2ba9c2e7605bb788bc406184547d22c6436867.zip
v2.1.0, refactor w/ crimson
Diffstat (limited to 'build/postgrest/Dockerfile')
-rw-r--r--build/postgrest/Dockerfile30
1 files changed, 0 insertions, 30 deletions
diff --git a/build/postgrest/Dockerfile b/build/postgrest/Dockerfile
deleted file mode 100644
index bf1a573..0000000
--- a/build/postgrest/Dockerfile
+++ /dev/null
@@ -1,30 +0,0 @@
-FROM alpine:3.19
-
-# install packages
-RUN apk add --no-cache tini shadow
-RUN rm -fr /var/cache/apk/*
-
-# setup main user
-RUN adduser -D postgrest
-RUN groupmod --gid 1000 postgrest
-RUN usermod --uid 1000 postgrest
-
-# install postgrest
-COPY ./postgrest.tar.xz /tmp/postgrest.tar.xz
-RUN tar xJf /tmp/postgrest.tar.xz -C /usr/local/bin
-RUN rm /tmp/postgrest.tar.xz
-
-# copy scripts
-COPY ./entrypoint.sh /usr/local/bin/entrypoint.sh
-
-# remove build packages
-RUN apk del shadow
-
-# make the dirs
-RUN mkdir -p /etc/postgrest.d && \
- chown postgrest:postgrest /etc/postgrest.d
-
-# do the
-USER postgrest
-ENTRYPOINT ["/sbin/tini", "--"]
-CMD ["/usr/local/bin/entrypoint.sh"]