Skip to content

Commit

Permalink
Use / as the WORKDIR to prevent files from being overwritten in /data…
Browse files Browse the repository at this point in the history
… mounts
  • Loading branch information
Joshua Sierles committed Nov 19, 2021
1 parent f284a5e commit 3f51e80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
ARG REDIS_VERSION=6.2.6
FROM redis:${REDIS_VERSION}-alpine

WORKDIR /

RUN apk add --no-cache curl
RUN curl -L https://github.com/oliver006/redis_exporter/releases/download/v1.31.4/redis_exporter-v1.31.4.linux-amd64.tar.gz -o exporter.tgz \
&& tar xvzf exporter.tgz \
&& cp redis_exporter-*/redis_exporter /usr/local/bin/redis_exporter
&& cp redis_exporter-*/redis_exporter /usr/local/bin/redis_exporter \
&& rm -rf *exporter*

RUN curl -L https://github.com/DarthSim/hivemind/releases/download/v1.0.6/hivemind-v1.0.6-linux-amd64.gz -o hivemind.gz \
&& gunzip hivemind.gz \
&& cp hivemind /usr/local/bin
&& mv hivemind /usr/local/bin

COPY start-redis-server.sh /usr/bin/start-redis-server.sh
COPY Procfile Procfile
Expand Down
1 change: 0 additions & 1 deletion fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ app = "redis-example"
port = 9091
path = "/metrics"


# Use the Docker image instead of building from source
#
# [build]
Expand Down

0 comments on commit 3f51e80

Please sign in to comment.