This repository was archived by the owner on Dec 17, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +15
-35
lines changed
Expand file tree Collapse file tree 2 files changed +15
-35
lines changed Original file line number Diff line number Diff line change 1- FROM lambdalinux/baseimage-lambda:2017.03-004
2-
3- CMD ["/sbin/my_init" ]
4-
5- COPY [ \
6- "./docker-extras/etc-sudoers.d-docker" , \
7- "/tmp/docker-build/" \
8- ]
1+ FROM alpine:3.7
92
103RUN \
11- # yum
12- yum update && \
13- yum install bzip2 && \
14- yum install python27-PyYAML && \
15- yum install python27-mako && \
16- yum install sudo && \
17- yum install tar && \
18- \
19- # setup sudo
20- usermod -a -G wheel ll-user && \
21- cp /tmp/docker-build/etc-sudoers.d-docker /etc/sudoers.d/docker && \
22- chmod 440 /etc/sudoers.d/docker && \
4+ # apk
5+ apk update && \
6+ apk add \
7+ curl \
8+ vim && \
239 \
24- # for python debugging (uncomment when required)
25- # yum install gcc48 && \
26- # yum install python27-devel && \
27- # yum install python27-pip && \
28- # su -l ll-user -c "pip-2.7 install --user ipdb==0.8 ipython==5.3.0" && \
10+ # setup ll-user
11+ adduser -D -u 500 ll-user && \
12+ echo "ll-user ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \
2913 \
3014 # install github-release
15+ mkdir /tmp/docker-build && \
3116 curl -L https://github.com/aktau/github-release/releases/download/v0.6.2/linux-amd64-github-release.tar.bz2 -o /tmp/docker-build/linux-amd64-github-release.tar.bz2 && \
32- pushd /tmp/docker-build && \
17+ cd /tmp/docker-build && \
3318 tar xjvf linux-amd64-github-release.tar.bz2 && \
3419 cp bin/linux/amd64/github-release /usr/bin && \
35- popd && \
20+ cd /root && \
21+ rm -rf /tmp/docker-build && \
3622 \
3723 # cleanup
38- rm -rf /tmp/docker-build && \
39- yum clean all && \
40- rm -rf /var/cache/yum/* && \
24+ cd /root && \
4125 rm -rf /tmp/* && \
42- rm -rf /var/tmp /*
26+ rm -f /var/cache/apk /*
4327
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments