fix: RE-Enabled lab docker file
Some checks failed
Build and Push Dev Containers / build (push) Failing after 8m15s
Some checks failed
Build and Push Dev Containers / build (push) Failing after 8m15s
This commit is contained in:
38
homeland/Dockerfile
Normal file
38
homeland/Dockerfile
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
FROM alpine:latest
|
||||||
|
|
||||||
|
# Install core utilities and development tools
|
||||||
|
RUN apk add --no-cache \
|
||||||
|
bash \
|
||||||
|
curl \
|
||||||
|
git \
|
||||||
|
jq \
|
||||||
|
helix \
|
||||||
|
openssh \
|
||||||
|
sudo \
|
||||||
|
shadow \
|
||||||
|
zsh \
|
||||||
|
ca-certificates \
|
||||||
|
busybox-extras \
|
||||||
|
net-tools \
|
||||||
|
iputils \
|
||||||
|
python3 \
|
||||||
|
rust \
|
||||||
|
cargo \
|
||||||
|
go \
|
||||||
|
nodejs \
|
||||||
|
npm \
|
||||||
|
make \
|
||||||
|
build-base
|
||||||
|
|
||||||
|
# Add a non-root user
|
||||||
|
RUN adduser -D dev && echo "dev ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
||||||
|
RUN chsh -s /bin/zsh dev
|
||||||
|
|
||||||
|
# Set working directory
|
||||||
|
WORKDIR /home/dev
|
||||||
|
|
||||||
|
# Switch to non-root user
|
||||||
|
USER dev
|
||||||
|
|
||||||
|
# Default command
|
||||||
|
CMD ["/bin/zsh"]
|
Reference in New Issue
Block a user