Dockerfiles: debian_mini, set workdir and Env for following commits.

This commit is contained in:
zinobias 2023-05-22 14:18:49 +02:00 committed by Alessandro Pignotti
parent 200f23fc18
commit 8190cb971d

View file

@ -10,5 +10,9 @@ RUN apt-get -y install apt-utils gcc \
RUN useradd -m user && echo "user:password" | chpasswd
COPY --chown=user:user ./examples /home/user/examples
RUN chmod -R +x /home/user/examples/lua
# We set WORKDIR, as this gets extracted by Webvm to be used as the cwd. This is optional.
WORKDIR /home/user/
# We set env, as this gets extracted by Webvm. This is optional.
ENV HOME="/home/user" TERM="xterm" USER="user" SHELL="/bin/bash" EDITOR="vim" LANG="en_US.UTF-8" LC_ALL="C"
RUN echo 'root:password' | chpasswd
CMD [ "/bin/bash" ]