Skip to content

Commit

Permalink
fix: image
Browse files Browse the repository at this point in the history
  • Loading branch information
Skylar Simoncelli committed Oct 2, 2024
1 parent acc4d88 commit 0743907
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/actions/images/build-and-publish-ecr/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,34 +21,26 @@ runs:
- name: Write Dockerfile
run: |
cat > Dockerfile <<EOF
FROM debian:bullseye-slim
# Install necessary dependencies
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y \\
ca-certificates \\
libgcc-s1 \\
libstdc++6 \\
libc6 \\
libssl1.1 \\
libssl3 \\
zlib1g \\
libgomp1 \\
&& rm -rf /var/lib/apt/lists/*
RUN useradd -m -u 1000 -U -s /bin/sh -d /substrate substrate \\
&& mkdir -p /data /substrate/.local/share/partner-chains-node \\
&& chown -R substrate:substrate /data /substrate \\
&& ln -s /data /substrate/.local/share/partner-chains-node
COPY ./partner-chains-node-${{ inputs.tag }}-x86_64-linux /usr/local/bin/partner-chains-node
RUN chown substrate:substrate /usr/local/bin/partner-chains-node \\
&& chmod +x /usr/local/bin/partner-chains-node
USER substrate
EXPOSE 30333 9615 9933 9944
VOLUME ["/data"]
ENTRYPOINT ["/usr/local/bin/partner-chains-node"]
EOF
shell: bash
Expand Down

0 comments on commit 0743907

Please sign in to comment.