forked from icub-tech-iit/documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.Dockerfile
28 lines (19 loc) · 910 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
FROM ubuntu:latest
LABEL org.opencontainers.image.authors="Ugo Pattacini <[email protected]>"
# Increment this variable to force Docker to build the image for the sections below w/o relying on cache
ENV INVALIDATE_DOCKER_CACHE_ALL=0
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && \
apt install -y sudo apt-utils bash-completion wget ruby git magic-wormhole \
python3 python3-pip python3-setuptools python3-wheel
RUN pip install mkdocs && \
wget https://raw.githubusercontent.com/icub-tech-iit/documentation/master/mkdocs.yml && \
pip install $(mkdocs get-deps) && \
rm mkdocs.yml
RUN gem install yaml
RUN rm -Rf /var/lib/apt/lists/*
RUN useradd -l -u 33333 -G sudo -md /home/gitpod -s /bin/bash -p gitpod gitpod && \
sed -i.bkp -e 's/%sudo\s\+ALL=(ALL\(:ALL\)\?)\s\+ALL/%sudo ALL=NOPASSWD:ALL/g' /etc/sudoers
EXPOSE 8000
WORKDIR /workspace
CMD ["bash"]