mirror of
https://gitlab.com/simple-stock-bots/simple-discord-stock-bot.git
synced 2025-06-15 23:06:40 +00:00
add devcontainer stuff from telegram bot
This commit is contained in:
parent
7e05e2dbec
commit
342392b604
24
.devcontainer/Dockerfile
Normal file
24
.devcontainer/Dockerfile
Normal file
@ -0,0 +1,24 @@
|
||||
FROM python:3.9-buster AS builder
|
||||
|
||||
|
||||
COPY requirements.txt /requirements.txt
|
||||
RUN pip install --user -r requirements.txt
|
||||
|
||||
|
||||
FROM python:3.9-slim
|
||||
|
||||
ENV MPLBACKEND=Agg
|
||||
|
||||
COPY --from=builder /root/.local /root/.local
|
||||
|
||||
# Formatting
|
||||
RUN pip install --no-cache-dir black
|
||||
# Jupyter Notebooks
|
||||
RUN pip install --no-cache-dir ipykernel
|
||||
|
||||
ENV DISCORD=TOKEN
|
||||
ENV IEX=TOKEN
|
||||
|
||||
COPY . .
|
||||
|
||||
# CMD [ "python", "./bot.py" ]
|
@ -5,12 +5,13 @@
|
||||
// Sets the run context to one level up instead of the .devcontainer folder.
|
||||
"context": "..",
|
||||
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.
|
||||
"dockerFile": "../DockerDev",
|
||||
"dockerFile": "Dockerfile",
|
||||
// Set *default* container specific settings.json values on container create.
|
||||
"settings": {},
|
||||
// Add the IDs of extensions you want installed when the container is created.
|
||||
"extensions": [
|
||||
"ms-python.python"
|
||||
"ms-python.python",
|
||||
"ms-azuretools.vscode-docker"
|
||||
]
|
||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||
// "forwardPorts": [],
|
||||
|
Loading…
x
Reference in New Issue
Block a user