generated from leaningtech/webvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
627ae02
commit 4e59ed0
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM --platform=i386 i386/debian:buster | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
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" ] |