File: Dockerfile.dev

package info (click to toggle)
python-aiohasupervisor 0.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 884 kB
  • sloc: python: 4,353; sh: 37; makefile: 3
file content (24 lines) | stat: -rw-r--r-- 593 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM mcr.microsoft.com/devcontainers/python:1-3.12

SHELL ["/bin/bash", "-o", "pipefail", "-c"]

# Uninstall pre-installed formatting and linting tools to prevent version conflicts
# Install uv
RUN \
    pipx uninstall mypy \
    && pipx uninstall pylint \
    && pip3 install --no-cache-dir uv==0.2.26

# Make venv
USER vscode
ENV VIRTUAL_ENV="/home/vscode/.local/ha-venv"
RUN uv venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"

# Copy in bootstrap script
COPY script/devcontainer_bootstrap /usr/bin

WORKDIR /workspaces

# Set the default shell to bash instead of sh
ENV SHELL /bin/bash