Created
April 11, 2022 10:21
-
-
Save sylfabre/18e517f679951d0f89db4eb92e50a0f6 to your computer and use it in GitHub Desktop.
Market asset.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3.7' | |
| services: | |
| ubuntu: | |
| build: | |
| context: ./ | |
| dockerfile: Dockerfile | |
| volumes: | |
| - ./:/home/dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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