Skip to content

Commit 28cfbfe

Browse files
pietroalbiniJoshua Nelson
authored and
Joshua Nelson
committed
remove entrypoint from the linux image
Current Rustwide versions don't rely on MAP_USER_ID anymore, so the entrypoint does not add anything of value.
1 parent b7cd113 commit 28cfbfe

File tree

2 files changed

+3
-41
lines changed

2 files changed

+3
-41
lines changed

Diff for: linux/Dockerfile

+3-12
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,8 @@ FROM ubuntu:focal
22

33
# Install the packages contained in `packages.txt`
44
COPY packages.txt /opt/crates-build-env/packages.txt
5-
RUN apt-get update && cat /opt/crates-build-env/packages.txt | DEBIAN_FRONTEND=noninteractive xargs apt-get install -y
6-
7-
# Fix the "sudo: setrlimit(RLIMIT_CORE): Operation not permitted" error when
8-
# starting up the container with `MAP_USER_ID`. Upstream issue:
9-
#
10-
# https://github.com/sudo-project/sudo/issues/42
11-
#
12-
RUN echo "Set disable_coredump false" >> /etc/sudo.conf
13-
14-
# Setup the entrypoint
15-
COPY entrypoint.sh /opt/crates-build-env/entrypoint.sh
16-
ENTRYPOINT ["/opt/crates-build-env/entrypoint.sh"]
5+
RUN apt-get update && \
6+
cat /opt/crates-build-env/packages.txt | DEBIAN_FRONTEND=noninteractive xargs apt-get install -y && \
7+
rm -rf /var/lib/apt/lists/*
178

189
CMD ["bash"]

Diff for: linux/entrypoint.sh

-29
This file was deleted.

0 commit comments

Comments
 (0)