forked from sasha-astiadi/info_uhuru
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitpod.Dockerfile
39 lines (25 loc) · 1 KB
/
.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
31
32
33
34
35
36
37
38
39
FROM gitpod/workspace-full:latest
USER root
RUN apt-get update && apt-get install -y redis-server mc
# RUN apt-get update && \
# apt-get install -yq sudo
# RUN apt install -y redis-server
### Gitpod user ###
# '-l': see https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#user
# 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
# ENV HOME=/home/gitpod
# WORKDIR $HOME
# USER gitpod
# ADD install.sh /tmp/install.sh
# ADD build.sh /tmp/build.sh
# ADD publishtools/ /tmp/publishtools/
# RUN bash /tmp/install.sh
# RUN cd /tmp && bash /tmp/build.sh
# RUN apt-get clean && rm -rf /var/cache/apt/* && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/*
USER gitpod
# RUN publishtools flatten || echo "flatten 1"
# #need to do 2 times, leave as this
# RUN publishtools flatten
# ENTRYPOINT [ "entrypoint.sh" ]