File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ FROM rootnroll/demo-ubuntu:18.04
2
2
LABEL maintainer
"Pavel Sviderski <[email protected] >"
3
3
4
4
ENV POETRY_VERSION 0.12.7
5
+ USER box
6
+ WORKDIR /home/box
5
7
6
8
# Create a virtualenv for poetry to force it to use Python 3
7
9
RUN python3 -m venv ~/.virtualenvs/poetry \
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ FROM ubuntu:18.04
2
2
LABEL maintainer
"Pavel Sviderski <[email protected] >"
3
3
4
4
RUN apt-get update && apt-get --no-install-recommends -y install \
5
- sudo man less locales gnupg2 vim nano screen tmux ca-certificates curl wget \
5
+ sudo man less locales gnupg2 vim nano screen tmux ca-certificates curl wget net-tools \
6
6
git rsync \
7
7
python3 python3-pip python3-venv \
8
8
# Add fish-shell repo and install fish, gnupg2 is required for apt-key
@@ -15,16 +15,18 @@ RUN locale-gen en_US.UTF-8
15
15
ENV LANG en_US.UTF-8
16
16
ENV LANGUAGE en_US:en
17
17
ENV LC_ALL en_US.UTF-8
18
- ENV SHELL /usr/bin/fish
18
+
19
+ ENV GOSU_VERSION 1.11
20
+ RUN wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-amd64" \
21
+ && chmod +x /usr/local/bin/gosu
19
22
20
23
RUN useradd -m box -s /usr/bin/fish \
21
24
&& echo "box ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/box
22
- USER box
23
- WORKDIR /home/box
24
25
25
26
# Install fisher package manager and configure the Powerline-style bobthefish theme
26
- RUN curl -Lo ~/.config/fish/functions/fisher.fish --create-dirs https://git.io/fisher \
27
- && fish -c "fisher add oh-my-fish/theme-bobthefish"
28
- COPY --chown=box:box config.fish .config/fish/
27
+ RUN gosu box curl -Lo /home/box/.config/fish/functions/fisher.fish --create-dirs https://git.io/fisher \
28
+ && gosu box fish -c "fisher add oh-my-fish/theme-bobthefish"
29
+ COPY --chown=box:box config.fish /home/box/.config/fish/
30
+ ENV SHELL /usr/bin/fish
29
31
30
32
CMD ["/usr/bin/fish" , "-l" ]
You can’t perform that action at this time.
0 commit comments