Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]