Skip to content

Instantly share code, notes, and snippets.

@sylfabre
Created April 11, 2022 10:21
Show Gist options
  • Select an option

  • Save sylfabre/18e517f679951d0f89db4eb92e50a0f6 to your computer and use it in GitHub Desktop.

Select an option

Save sylfabre/18e517f679951d0f89db4eb92e50a0f6 to your computer and use it in GitHub Desktop.
Market asset.sh
version: '3.7'
services:
ubuntu:
build:
context: ./
dockerfile: Dockerfile
volumes:
- ./:/home/dev
FROM ubuntu:20.04
RUN apt update && apt install -y \
locales \
nano \
software-properties-common \
sudo \
wget
# 1000 is the user on the host machine
RUN adduser --uid 1000 dev \
&& adduser dev sudo \
&& passwd -d dev
# Default user in the container
USER dev
# Default folder on SSH
RUN echo "cd /home/dev" >> ~/.bashrc
CMD tail -f /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment