mirror of
https://github.com/Lissy93/dotfiles.git
synced 2025-02-10 12:39:12 +01:00
Work in progress, Dockerfile
This commit is contained in:
parent
9cf0f3ca9b
commit
9165d7e4f4
58
Dockerfile
Normal file
58
Dockerfile
Normal file
@ -0,0 +1,58 @@
|
||||
FROM alpine:latest
|
||||
|
||||
LABEL maintainer "Alicia Sykes <https://aliciasykes.com>"
|
||||
LABEL org.opencontainers.image.source https://github.com/lissy93/dotfiles
|
||||
|
||||
ARG user=alicia
|
||||
ARG group=wheel
|
||||
ARG uid=1000
|
||||
ARG dotfiles=dotfiles.git
|
||||
ARG userspace=userspace.git
|
||||
ARG vcsprovider=github.com
|
||||
ARG vcsowner=lissy93
|
||||
|
||||
USER root
|
||||
|
||||
RUN \
|
||||
echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
|
||||
apk upgrade --no-cache && \
|
||||
apk add --update --no-cache \
|
||||
sudo \
|
||||
autoconf \
|
||||
automake \
|
||||
libtool \
|
||||
nasm \
|
||||
ncurses \
|
||||
ca-certificates \
|
||||
libressl \
|
||||
bash-completion \
|
||||
cmake \
|
||||
ctags \
|
||||
file \
|
||||
curl \
|
||||
build-base \
|
||||
gcc \
|
||||
coreutils \
|
||||
wget \
|
||||
neovim \
|
||||
git git-doc \
|
||||
zsh \
|
||||
docker \
|
||||
docker-compose
|
||||
|
||||
RUN \
|
||||
echo "%${group} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \
|
||||
adduser -D -G ${group} ${user} && \
|
||||
addgroup ${user} docker
|
||||
|
||||
COPY ./ /home/${user}/.userspace/
|
||||
RUN \
|
||||
git clone --recursive https://${vcsprovider}/${vcsowner}/${dotfiles} /home/${user}/.dotfiles && \
|
||||
chown -R ${user}:${group} /home/${user}/.dotfiles && \
|
||||
chown -R ${user}:${group} /home/${user}/.userspace
|
||||
# For advanced configuration where you would do ssh-agent and gpg-agent passthrough
|
||||
# cd /home/${user}/.userspace && \
|
||||
# git remote set-url origin git@${vcsprovider}:${vcsowner}/${userspace} && \
|
||||
# cd /home/${user}/.dotfiles && \
|
||||
# git remote set-url origin git@${vcsprovider}:${vcsowner}/${dotfiles}
|
||||
|
Loading…
Reference in New Issue
Block a user