-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from tomazed/arm64v8
Allow docker image to be build on other architecture
- Loading branch information
Showing
2 changed files
with
34 additions
and
4 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
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 |
---|---|---|
@@ -1,4 +1,20 @@ | ||
FROM openlaw/scala-builder:node AS builder | ||
# STAGE 1: Build the binary | ||
FROM openjdk:11-jre AS builder | ||
|
||
ARG SBT_VERSION=1.6.2 | ||
|
||
WORKDIR /app | ||
RUN \ | ||
mkdir /working/ && \ | ||
cd /working/ && \ | ||
curl -L -o sbt-$SBT_VERSION.deb https://repo.scala-sbt.org/scalasbt/debian/sbt-$SBT_VERSION.deb && \ | ||
dpkg -i sbt-$SBT_VERSION.deb && \ | ||
rm sbt-$SBT_VERSION.deb && \ | ||
apt-get update && \ | ||
apt-get install sbt && \ | ||
cd && \ | ||
rm -r /working/ && \ | ||
sbt sbtVersion | ||
WORKDIR /src | ||
RUN apk add --update nodejs npm | ||
RUN apt-get update && apt-get install -y nodejs npm openjdk-11-jdk-headless | ||
|