Skip to content

Commit df4c030

Browse files
authored
Add custom Dockerfile
1 parent a573d34 commit df4c030

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

.devcontainer/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Ref: https://hub.docker.com/r/microsoft/devcontainers-universal
2+
FROM mcr.microsoft.com/devcontainers/universal:2
3+
4+
# Keep in sync with Brewfile.
5+
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
6+
&& apt-get -y install octave z3

.devcontainer/devcontainer.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
{
2-
"features": {
3-
"ghcr.io/devcontainers-extra/features/apt-get-packages:1": {
4-
"version": "latest",
5-
"packages": "octave z3" // Keep in sync with Brewfile
6-
}
7-
},
2+
"build": {
3+
"dockerfile": "Dockerfile"
4+
},
5+
// "features": {
6+
// "ghcr.io/devcontainers-extra/features/apt-get-packages:1": {
7+
// // NOTE moved to Dockerfile to utilize docker build cache.
8+
// "version": "latest",
9+
// "packages": "octave z3" // Keep in sync with Brewfile
10+
// }
11+
// },
812
"postCreateCommand": "bash scripts/devcontainer_postCreateCommand.sh",
913
"customizations": {
1014
"vscode": {

0 commit comments

Comments
 (0)