Skip to content

Commit

Permalink
alpine-base.dockerfile: docker-compose.yml: ruby-2-5-5-alpine3-9
Browse files Browse the repository at this point in the history
  • Loading branch information
RandyMcMillan committed Jun 9, 2023
1 parent de288d7 commit 76c4a34
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
!*
!whatami
8 changes: 6 additions & 2 deletions alpine-base.dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
ARG DIND_VERSION=${DIND_VERSION}
FROM docker:${DIND_VERSION}-git as base
FROM docker:${DIND_VERSION}-git as dind
FROM docker.io/library/docker:20.10.16-git as git
FROM docker.io/library/ruby:2.5.5-alpine3.9 as base

RUN apk update \
&& apk add ${VERBOSE} ${NO_CACHE} \
alpine-sdk \
bash-completion \
bash \
curl \
git \
openssh-client \
shadow \
sudo \
util-linux \
vim

FROM scratch as user
COPY --from=dind . .
COPY --from=git . .
COPY --from=base . .
COPY whatami /usr/local/bin/

Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
- PASSWORD=${PASSWORD}
command: ["tail", "-f", "/dev/null"]
volumes:
- ${HOME:-.}:/home/${HOST_USER}
- ${HOME:-.}:/home
- ${PWD:-.}:/home/${HOST_USER}/alpine_shell

alpine-guix:
Expand All @@ -46,7 +46,7 @@ services:
- PASSWORD=${PASSWORD}
command: ["tail", "-f", "/dev/null"]
volumes:
- ${HOME:-.}:/home/${HOST_USER}
- ${HOME:-.}:/home
- ${PWD:-.}:/home/${HOST_USER}/alpine_shell

ubuntu:
Expand Down

0 comments on commit 76c4a34

Please sign in to comment.