https://thekkom.tistory.com/250
docker:: docker 명령어 모음
# docker init # -it docker exec -it db psql -U postgres # compose up docker compose up --build # Develop App and Setting docker volume create mongodb docker volume create mongodb_config docker network create mongodb docker run -it --rm -d -v mongodb:/data/
thekkom.tistory.com
docker 에 비밀번호 설정을 꼭하자
RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /app USER appuser
# Dockerfile
# For more information, please refer to https://aka.ms/vscode-docker-python
FROM python:3.8-slim-buster
# Keeps Python from generating .pyc files in the container
ENV PYTHONDONTWRITEBYTECODE=1
# Turns off buffering for easier container logging
ENV PYTHONUNBUFFERED=1
# Install pip requirements
COPY requirements.txt .
RUN python -m pip install -r requirements.txt
WORKDIR /app
COPY . /app
# Creates a non-root user with an explicit UID and adds permission to access the /app folder
# For more info, please refer to https://aka.ms/vscode-docker-python-configure-containers
RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /app
USER appuser
# During debugging, this entry point will be overridden. For more information, please refer to https://aka.ms/vscode-docker-python-debug
CMD ["python", "app.py"]
https://github.com/christianlempa/videos/tree/main/docker-python-debugging-vscode
GitHub - ChristianLempa/videos: This is my video documentation. Here you'll find code-snippets, technical documentation, templat
This is my video documentation. Here you'll find code-snippets, technical documentation, templates, command reference, and whatever is needed for all my YouTube Videos. - GitHub - ChristianLemp...
github.com
https://www.youtube.com/watch?v=jtBVppyfDbE
_