Skip to content

Commit

Permalink
Fix devcontainers
Browse files Browse the repository at this point in the history
  • Loading branch information
ShishckovA committed Oct 9, 2024
1 parent 5b7bd10 commit 8a03574
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Base Python image
FROM python:3.9.20-bullseye
FROM python:3.10-bullseye

# Update system and install backup utilities
COPY back-end/docker/image/install-postgres-client.sh /
RUN sh install-postgres-client.sh

# Install node 14
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
RUN apt -y install nodejs
# Install node 16
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
RUN . ~/.nvm/nvm.sh && nvm install 16

# Setup fish
RUN apt -y install fish; chsh -s /usr/bin/fish; mkdir /root/.config; mkdir /root/.config/fish
Expand Down
3 changes: 2 additions & 1 deletion .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ services:
- ../back-end/.env
volumes:
# Forwards the local Docker socket to the container.
- /var/run/docker.sock:/var/run/docker-host.sock
- ~/.ssh:/root/.ssh
- /var/run/docker.sock:/var/run/docker.sock
# Update this to wherever you want VS Code to mount the folder of your project
- ..:/workspace:cached

Expand Down

0 comments on commit 8a03574

Please sign in to comment.