Commit b200e8d6 authored by Felix Bartels's avatar Felix Bartels

download release instead of copying from docker

temporarily set use_cdn as assets don't seem to be part of the download
Signed-off-by: Felix Bartels's avatarFelix Bartels <felix@host-consultants.de>
parent b0b70d9a
# TODO put version into tag
FROM statping/statping:v0.90.32 as statping
FROM cloudron/base:1.0.0@sha256:147a648a068a2e746644746bbfb42eb7a50d682437cead3c67c933c546357617
WORKDIR /app/data
EXPOSE 8080
ENV STATPING_DIR=/app/data
ENV \
VERBOSE=4 \
USE_CDN=true
# STATPING_DIR=/app/data
ARG STATPING_VERSION=0.90.30
COPY --from=statping /usr/local/bin/statping /usr/local/bin/statping
COPY --from=statping /usr/local/bin/sass /usr/local/bin/sass
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
WORKDIR /app/pkg
RUN curl -L https://github.com/statping/statping/releases/download/v$STATPING_VERSION/statping-linux-amd64.tar.gz | tar -xz -f -
COPY start.sh /app/pkg/
WORKDIR /app/data
CMD [ "/app/pkg/start.sh" ]
......@@ -7,4 +7,7 @@ export DB_USER=$CLOUDRON_POSTGRESQL_USERNAME
export DB_PASS=$CLOUDRON_POSTGRESQL_PASSWORD
export DB_DATABASE=$CLOUDRON_POSTGRESQL_DATABASE
exec /usr/local/bin/statping
# the credentials for the postgres database are changing, but statping stores them in config.yml and wants to reuse old credentials
#rm /app/data/config.yml
exec /app/pkg/statping
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment