an update..
This commit is contained in:
parent
6b3e4be0ef
commit
adf0bd177a
1 changed files with 9 additions and 12 deletions
21
Dockerfile
21
Dockerfile
|
|
@ -13,8 +13,8 @@ WORKDIR .
|
||||||
# Do this because next steps require some software packages to be installed
|
# Do this because next steps require some software packages to be installed
|
||||||
RUN apk add --no-cache alpine-sdk ca-certificates perl
|
RUN apk add --no-cache alpine-sdk ca-certificates perl
|
||||||
|
|
||||||
|
# Use without volumes in the compose file only!
|
||||||
#RUN git clone https://git.xw3.org/hanez/home.git /root
|
#RUN git clone https://git.xw3.org/hanez/home.git /root
|
||||||
|
|
||||||
#COPY root/.ssh /root/.ssh
|
#COPY root/.ssh /root/.ssh
|
||||||
|
|
||||||
# Install Rust (Copied from the official Rust Dockerfile)
|
# Install Rust (Copied from the official Rust Dockerfile)
|
||||||
|
|
@ -37,37 +37,34 @@ RUN \
|
||||||
cargo --version; \
|
cargo --version; \
|
||||||
rustc --version;
|
rustc --version;
|
||||||
|
|
||||||
# Install Rust based applications
|
|
||||||
# ...
|
|
||||||
|
|
||||||
# Setup environment
|
# Setup environment
|
||||||
RUN \
|
RUN \
|
||||||
apk update;\
|
apk update; \
|
||||||
apk upgrade --available;\
|
apk upgrade --available; \
|
||||||
apk add --no-cache bash byobu git helix mc openssh shadow tmux vim zsh zsh-vcs neovim
|
apk add --no-cache bash byobu git helix mc openssh shadow tmux vim zsh zsh-vcs neovim
|
||||||
|
|
||||||
WORKDIR /home/hanez
|
WORKDIR /home/hanez
|
||||||
|
|
||||||
|
# Use without volumes in the compose file only!
|
||||||
#RUN git clone https://git.xw3.org/hanez/home.git .
|
#RUN git clone https://git.xw3.org/hanez/home.git .
|
||||||
|
|
||||||
#COPY home/hanez/.ssh /home/hanez/.ssh
|
#COPY home/hanez/.ssh /home/hanez/.ssh
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
chsh -s /bin/zsh root
|
chsh -s /bin/zsh root
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
useradd -M -u 1000 -U -s /bin/zsh -d /home/hanez hanez;\
|
useradd -M -u 1000 -U -s /bin/zsh -d /home/hanez hanez; \
|
||||||
touch /home/hanez/.penv;\
|
touch /home/hanez/.penv; \
|
||||||
chown -R 1000:1000 /home/hanez
|
chown -R 1000:1000 /home/hanez
|
||||||
|
|
||||||
WORKDIR .
|
WORKDIR .
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
useradd -M -u 1001 -U -s /bin/bash -d /home/one one;\
|
useradd -M -u 1001 -U -s /bin/bash -d /home/one one; \
|
||||||
useradd -M -u 1002 -U -s /bin/ash -d /home/two two
|
useradd -M -u 1002 -U -s /bin/ash -d /home/two two
|
||||||
|
|
||||||
RUN mkdir /home/xxx
|
RUN mkdir /home/rusty
|
||||||
|
|
||||||
# This is obsolete since I use docker-compose for managing the container
|
# This is obsolete since I use docker-compose for managing the container
|
||||||
ENTRYPOINT ["ash"]
|
ENTRYPOINT ["sh"]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue