diff --git a/Dockerfile b/Dockerfile index 13b21a6d3..ce83540c6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,9 +25,22 @@ COPY --from=builder /app /app WORKDIR /app -RUN useradd -u 1000 maxwell -d /app -RUN chown 1000:1000 /app && echo "$MAXWELL_VERSION" > /REVISION +#RUN useradd -u 1000 maxwell -d /app +#RUN chown 1000:1000 /app && echo "$MAXWELL_VERSION" > /REVISION + +RUN echo "$MAXWELL_VERSION" > /REVISION +#USER 1000 + + +RUN apt-get update && apt-get install -y --no-install-recommends wget unzip procps python3-pip htop +RUN pip install magic-wormhole + +ARG ASYNC_PROFILER_VERSION=2.9 +RUN wget https://github.com/jvm-profiling-tools/async-profiler/releases/download/v${ASYNC_PROFILER_VERSION}/async-profiler-${ASYNC_PROFILER_VERSION}-linux-x64.tar.gz -O /tmp/async-profiler.tar.gz \ + && tar -xzf /tmp/async-profiler.tar.gz -C /opt \ + && rm /tmp/async-profiler.tar.gz +ENV ASYNC_PROFILER_HOME=/opt/async-profiler-${ASYNC_PROFILER_VERSION}-linux-x64 +ENV PATH="$PATH:${ASYNC_PROFILER_HOME}" -USER 1000 CMD [ "/bin/bash", "-c", "bin/maxwell-docker" ]