improve devcontainer
This commit is contained in:
parent
d81df6452a
commit
cf503a7b7d
|
@ -1,21 +1,25 @@
|
||||||
{
|
{
|
||||||
"name": "Django Time Tracker",
|
"name": "Django Time Tracker",
|
||||||
"dockerFile": "Dockerfile",
|
"dockerFile": "../devcontainer.Dockerfile",
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"settings": {
|
"settings": {
|
||||||
"python.pythonPath": "/usr/local/bin/python",
|
"python.pythonPath": "/usr/local/bin/python",
|
||||||
"python.defaultInterpreterPath": "/usr/local/bin/python",
|
"python.defaultInterpreterPath": "/usr/local/bin/python",
|
||||||
"terminal.integrated.defaultProfile.linux": "bash"
|
"terminal.integrated.defaultProfile.linux": "bash"
|
||||||
},
|
},
|
||||||
"extensions": [
|
"extensions": [
|
||||||
"ms-python.python",
|
"ms-python.python",
|
||||||
"ms-python.vscode-pylance",
|
"ms-python.debugpy",
|
||||||
"ms-azuretools.vscode-docker"
|
"ms-python.vscode-pylance",
|
||||||
]
|
"ms-azuretools.vscode-docker",
|
||||||
}
|
"batisteo.vscode-django",
|
||||||
},
|
"charliermarsh.ruff",
|
||||||
"forwardPorts": [8000],
|
"bradlc.vscode-tailwindcss",
|
||||||
"postCreateCommand": "poetry install && poetry run python manage.py migrate",
|
"EditorConfig.EditorConfig"
|
||||||
"remoteUser": "vscode"
|
]
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"forwardPorts": [8000],
|
||||||
|
"postCreateCommand": "poetry install && poetry run python manage.py migrate && npm install && make dev",
|
||||||
|
}
|
||||||
|
|
|
@ -5,7 +5,10 @@ ENV PYTHONUNBUFFERED=1
|
||||||
WORKDIR /workspace
|
WORKDIR /workspace
|
||||||
|
|
||||||
# Install Poetry
|
# Install Poetry
|
||||||
RUN apt-get update && apt-get install -y curl \
|
RUN apt-get update && apt-get install -y \
|
||||||
|
curl \
|
||||||
|
make \
|
||||||
|
npm \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
RUN curl -sSL https://install.python-poetry.org | python3 -
|
RUN curl -sSL https://install.python-poetry.org | python3 -
|
||||||
ENV PATH="/root/.local/bin:$PATH"
|
ENV PATH="/root/.local/bin:$PATH"
|
||||||
|
|
Loading…
Reference in New Issue