mirror of
https://github.com/Hestia-Homes/survey-extraction.git
synced 2026-06-08 11:17:29 +00:00
mounted home drive to not keep mounting drive
This commit is contained in:
parent
7effe9f671
commit
0871c4fa07
2 changed files with 12 additions and 5 deletions
|
|
@ -2,13 +2,17 @@ FROM library/python:3.12-bullseye
|
|||
|
||||
ARG USER=vscode
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
RUN apt update \
|
||||
&& apt install -y --no-install-recommends sudo \
|
||||
|
||||
# Install system dependencies in a single layer
|
||||
RUN apt update && apt install -y --no-install-recommends \
|
||||
sudo jq vim \
|
||||
&& apt autoremove -y \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& useradd -m -s /usr/bin/bash ${USER} \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Create the user and grant sudo privileges
|
||||
RUN useradd -m -s /usr/bin/bash ${USER} \
|
||||
&& echo "${USER} ALL=(ALL) NOPASSWD: ALL" >/etc/sudoers.d/${USER} \
|
||||
&& chmod 0440 /etc/sudoers.d/${USER}
|
||||
|
||||
# Install Poetry
|
||||
RUN pip install poetry
|
||||
RUN pip install --no-cache-dir poetry
|
||||
|
|
|
|||
|
|
@ -3,6 +3,9 @@
|
|||
"build": { "dockerfile": "Dockerfile" },
|
||||
"remoteUser": "vscode",
|
||||
"postStartCommand": "bash .devcontainer/post-install.sh",
|
||||
"mounts": [
|
||||
"source=${localEnv:HOME},target=/workspaces/home,type=bind"
|
||||
],
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue