devcontainer update: locale + venv
This commit is contained in:
parent
ca16a16a56
commit
bcf3ad2fed
@ -1,9 +1,15 @@
|
|||||||
FROM python:3.11-slim-bookworm as development
|
FROM python:3.11-slim-bookworm as development
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN apt-get -y update && apt-get install -yqq dos2unix chromium chromium-driver \
|
RUN apt-get -y update && apt-get install -yqq dos2unix \
|
||||||
libxi6 libgconf-2-4 python3-selenium \
|
libxi6 libgconf-2-4 \
|
||||||
tzdata git
|
tzdata git gcc
|
||||||
RUN git config --global --add safe.directory /usr/src/app
|
RUN apt-get install -y locales && \
|
||||||
|
sed -i -e 's/# en_GB.UTF-8 UTF-8/en_GB.UTF-8 UTF-8/' /etc/locale.gen && \
|
||||||
|
dpkg-reconfigure --frontend=noninteractive locales && \
|
||||||
|
locale-gen
|
||||||
|
ENV LANG en_GB.UTF-8
|
||||||
|
ENV LC_ALL en_GB.UTF-8
|
||||||
|
RUN git config --global --add safe.directory /app
|
||||||
RUN python3 -m pip install --upgrade pip
|
RUN python3 -m pip install --upgrade pip
|
||||||
RUN python3 -m pip install --user virtualenv
|
RUN python3 -m pip install --user virtualenv
|
||||||
ENV TZ=Europe/Berlin
|
ENV TZ=Europe/Berlin
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
source ./venv/Scripts/activate && pip3 install --upgrade pip && pip3 install --user -r requirements.txt
|
python3 -m venv venv
|
||||||
|
source ./venv/bin/activate
|
||||||
|
pip3 install -r requirements.txt
|
Loading…
Reference in New Issue
Block a user