Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Updates devcontainer #1064

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .devcontainer/recommended-Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@ RUN apt update

RUN apt upgrade -y

RUN apt install python3 zsh -y
RUN apt install python3 python3-venv zsh -y


RUN wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O - | zsh || true

RUN yarn install

RUN pip3 install -r ../docs/requirements.txt
RUN pip3 install sphinx
RUN python3 -m venv /opt/venv; mkdir /workspace

COPY docs/requirements.txt /workspace/
RUN /opt/venv/bin/pip3 install -r /workspace/requirements.txt
RUN /opt/venv/bin/pip3 install sphinx

CMD ["zsh"]
CMD . /opt/venv/bin/activate && exec zsh
11 changes: 9 additions & 2 deletions .devcontainer/recommended-devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
{
"name": "Atomic Calendar Revive",
"dockerFile": "Dockerfile",
"build": {
"context": "..",
"dockerfile": "Dockerfile"
},
"workspaceMount": "",
"runArgs": [
"--volume=${localWorkspaceFolder}:/workspaces/${localWorkspaceFolderBasename}"
],
"context": "..",
"appPorts": [
5000
Expand All @@ -26,4 +33,4 @@
"editor.formatOnType": true,
"files.trimTrailingWhitespace": true
}
}
}