File tree 1 file changed +1
-11
lines changed
1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change 1
1
# Dockerfile that creates a container suitable to build dotnet-cli
2
- FROM mcr.microsoft.com/dotnet-buildtools/prereqs:centos-7-rpmpkg-20210714125435-9b5bbc2
2
+ FROM mcr.microsoft.com/dotnet-buildtools/prereqs:centos-7-rpmpkg-20220505130359-d0fa36f
3
3
4
4
# Setup User to match Host User, and give superuser permissions
5
5
ARG USER
@@ -9,22 +9,12 @@ ARG WORKDIR
9
9
10
10
WORKDIR ${WORKDIR}
11
11
12
- # Workaround per https://github.com/dotnet/aspnetcore/pull/37192#issuecomment-936589233
13
- RUN gem uninstall fpm
14
- RUN yum remove -y rubygems
15
- RUN yum remove -y ruby-devel
16
- RUN yum --enablerepo=centos-sclo-rh -y install rh-ruby25
17
- RUN yum --enablerepo=centos-sclo-rh -y install rh-ruby25-ruby-devel
18
- RUN yum --enablerepo=centos-sclo-rh -y install rh-ruby25-rubygems
19
- RUN scl enable rh-ruby25 'gem install --no-document fpm'
20
-
21
12
RUN useradd -m ${USER} --uid ${USER_ID} -g root
22
13
RUN echo '${USER} ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
23
14
24
15
# With the User Change, we need to change permssions on these directories
25
16
RUN chmod -R a+rwx /usr/local
26
17
RUN chmod -R a+rwx /home
27
- RUN chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo
28
18
29
19
# Set user to the one we just created
30
20
USER $USER_ID
You can’t perform that action at this time.
0 commit comments