-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Liam Monninger
authored and
Liam Monninger
committed
Sep 24, 2023
1 parent
6f2204d
commit a4a7931
Showing
5 changed files
with
52 additions
and
3 deletions.
There are no files selected for viewing
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Use the official Ubuntu image as a base | ||
FROM ubuntu:latest | ||
|
||
# Set environment variables to non-interactive (this prevents some prompts) | ||
ENV DEBIAN_FRONTEND=non-interactive | ||
|
||
# Install necessary tools and libraries | ||
RUN apt-get update && apt-get install -y \ | ||
curl \ | ||
build-essential \ | ||
pkg-config \ | ||
libssl-dev | ||
|
||
# Install Rust using rustup | ||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | ||
|
||
# Add Rust to the PATH | ||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
|
||
# Set the working directory in the container | ||
WORKDIR /workspace | ||
|
||
# Command to run on container start | ||
CMD [ "bash" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "ubuntu", | ||
"dockerFile": "Dockerfile", | ||
"context": ".", | ||
"runArgs": [ | ||
"--cap-add=SYS_PTRACE", | ||
"--security-opt", | ||
"seccomp=unconfined" | ||
], | ||
"settings": { | ||
"terminal.integrated.shell.linux": "/bin/bash" | ||
}, | ||
"extensions": [ | ||
"rust-lang.rust" | ||
], | ||
"forwardPorts": [], | ||
"postCreateCommand": "cargo check", | ||
"remoteUser": "root" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters