Remove docker-compose wrapper script; fixes to devcontainers

This commit is contained in:
Dragory 2022-06-26 23:15:36 +03:00
parent db84d80e74
commit 17fa857609
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
7 changed files with 17 additions and 54 deletions

View file

@ -1,6 +1,6 @@
FROM ubuntu:20.04
ARG DOCKER_UID=1000
ARG DOCKER_DEV_UID
ARG DOCKER_DEV_SSH_PASSWORD
ENV DEBIAN_FRONTEND=noninteractive
@ -13,7 +13,7 @@ RUN apt-get install -y sudo git curl
# Set up SSH access
RUN apt-get install -y openssh-server iptables
RUN mkdir /var/run/sshd
RUN useradd -rm -d /home/ubuntu -s /bin/bash -g root -G sudo -u $DOCKER_UID ubuntu
RUN useradd -rm -d /home/ubuntu -s /bin/bash -g root -G sudo -u $DOCKER_DEV_UID ubuntu
RUN echo "ubuntu:${DOCKER_DEV_SSH_PASSWORD}" | chpasswd
# Set up proper permissions for volumes