forked from icub-tech-iit/outside-collaborators
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.Dockerfile
30 lines (22 loc) · 927 Bytes
/
.gitpod.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM ubuntu:latest
LABEL org.opencontainers.image.authors="Ugo Pattacini <[email protected]>"
# Non-interactive installation mode
ENV DEBIAN_FRONTEND=noninteractive
# Update apt database
RUN apt update
# Increment this variable to force Docker to build the image for the sections below w/o relying on cache
ENV INVALIDATE_DOCKER_CACHE=0
# Install essentials
RUN apt install -y apt-utils software-properties-common apt-transport-https sudo psmisc \
lsb-release wget git ruby
# Install gems
RUN gem install octokit yaml
# Create user gitpod
RUN useradd -l -u 33333 -G sudo -md /home/gitpod -s /bin/bash -p gitpod gitpod && \
# passwordless sudo for users in the 'sudo' group
sed -i.bkp -e 's/%sudo\s\+ALL=(ALL\(:ALL\)\?)\s\+ALL/%sudo ALL=NOPASSWD:ALL/g' /etc/sudoers
# Clean up unnecessary installation products
RUN rm -Rf /var/lib/apt/lists/*
# Launch bash from /workspace
WORKDIR /workspace
CMD ["bash"]