-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
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,21 @@ | ||
FROM mcr.microsoft.com/devcontainers/base:jammy | ||
|
||
|
||
|
||
# https://get-coursier.io/docs/cli-installation | ||
RUN curl -fL "https://github.com/coursier/launchers/raw/master/cs-x86_64-pc-linux.gz" | gzip -d > cs && chmod +x cs && mv cs /usr/local/bin/cs | ||
|
||
COPY build.sc . | ||
|
||
# We should have all the deps to run Metals here, saving time from a cold start. | ||
RUN cs install metals | ||
|
||
# Download mills dependancies. if build.sc hasn't changed, this _should_ hit the layer cache. | ||
RUN mill __.prepareOffline | ||
|
||
# Copy source into container | ||
COPY . . | ||
|
||
# Compile the project - anything that has hit "main" should (at least!) compile | ||
# And setup mills BSP server for metals | ||
RUN ./mill show __.compile && ./mill mill.bsp.BSP/install |