Skip to content

Commit

Permalink
maint: use alpine base image in Dockerfile for M1 compat
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
  • Loading branch information
vladdoster committed Mar 21, 2022
1 parent 6db8c8e commit 610af16
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 16 deletions.
24 changes: 10 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
FROM ubuntu:latest
FROM alpine:latest

ENV DEBIAN_FRONTEND=noninteractive

RUN \
apt-get upgrade -y \
&& apt-get update -y \
&& DEBIAN_INTERACTIVE=1 \
apt-get install -y \
apk upgrade \
&& apk add \
automake autoconf \
bat binwalk \
bat bash build-base \
cmake curl \
git gdb gcc \
git gdb gcc gcompat \
jq \
make \
make musl \
nmap neovim \
python3 \
ruby \
sudo stow subversion \
tmux \
zsh \
&& rm -rf /var/lib/apt/lists/*
xz \
zsh

RUN \
NEWUSER="vlad" \
Expand All @@ -39,9 +38,6 @@ RUN \

WORKDIR /home/vlad/.config/dotfiles

RUN \
make \
&& make brew-install
RUN make

ENTRYPOINT ["zsh"]

2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,6 @@ rust-prog: ## Install programs via rust

build-container: ## Build containerized env and install dotfiles
docker buildx build \
--compress \
--platform linux/amd64 \
--rm \
--tag df-ubuntu:latest \
$$PWD
Expand Down

0 comments on commit 610af16

Please sign in to comment.