feat(dev): add super_dev

This commit is contained in:
evlic 2023-03-27 01:56:02 +08:00
parent 2405e067b2
commit 4ef9864bfe
3 changed files with 32 additions and 3 deletions

2
.env
View File

@ -1 +1,3 @@
COMPOSE_PROJECT_NAME=dev COMPOSE_PROJECT_NAME=dev
DIR=.

View File

@ -1,5 +1,5 @@
FROM alpine:latest FROM alpine:latest
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tencent.com/g' /etc/apk/repositories \ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tencent.com/g' /etc/apk/repositories && apk --no-cache add gcompat libstdc++ openssh zsh git
&& apk add gcompat libstdc++ \
&& apk add openssh zsh git WORKDIR /root

View File

@ -0,0 +1,27 @@
version: '3.5'
services:
alpine:
container_name: dev
image: alpine:dev
build:
context: ./alpine
hostname: dev
volumes:
- ${DIR}/alpine/root:/root
- ${HOME}/.ssh:/root/host/.ssh
networks:
- dev
command: tail -f /dev/null
restart: always
super_docker:
container_name: super_docker
image: justincormack/nsenter1:latest
restart: always
networks:
- dev
command: tail -f /dev/null
networks:
dev:
driver: bridge