summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorLogan Hunt <logan.hunt@usu.edu>2023-01-24 12:12:58 -0700
committerLogan Hunt <logan.hunt@usu.edu>2023-01-24 12:14:07 -0700
commitce06ddd669363651d335f5a4c05e1a347020a3c1 (patch)
tree74e60d55d9c7eaa42b269a6d59de43c86fdb9b77 /Dockerfile
parenta634901317de06ca09f3d78b3d0205c4d19df0cf (diff)
downloadchessh-ce06ddd669363651d335f5a4c05e1a347020a3c1.tar.gz
chessh-ce06ddd669363651d335f5a4c05e1a347020a3c1.zip
Redis time
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index 80fd412..6ef0845 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -49,7 +49,7 @@ RUN mix release
# the compiled release and other runtime necessities
FROM ${RUNNER_IMAGE}
-RUN apt-get update -y && apt-get install -y libstdc++6 openssl libncurses5 locales \
+RUN apt-get update -y && apt-get install -y libstdc++6 openssl libncurses5 locales redis \
&& apt-get clean && rm -f /var/lib/apt/lists/*_*
# Set the locale
@@ -69,7 +69,8 @@ ENV MIX_ENV="prod"
COPY --from=builder --chown=nobody:root /app/_build/${MIX_ENV}/rel/chessh ./
COPY --from=builder --chown=nobody:root /app/priv /app/priv
-USER nobody
+# USER nobody
+USER root
EXPOSE 8080
EXPOSE 34355