mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 20:50:55 +00:00
* Ran `./new.sh -n scala-cask -s` to generate a new Scala Cask impl * removed scala-cask-petstore * Added Scala-cask param parser for BigDecimals * added scala cask to samples * splitting out validation and json * Added GitHub workflow support * regenerated cask samples * cask build fix for local builds * regenerated samples * trying to reproduce failed cask build. checking in compiles sources, which have been reformatted * reverted whaitespace change * cask fix - adding gitignored files * scala cask toLowreCase fix * scala cask toUpperCase fix * cask regenerated samples * improved exception handling for scala cask * File separator fix for windows * Noob fix for cask * regenerated api package * Removed environment variable settings, debug code * Updated samples * moved scala-cask output * Regenerated samples * scala cask fix * Updated scala cask settings for more typical package structure Removed cask client samples * cask - reran generate samples * Removed duplicate ScalaCaskServer entry * minor enhancements * update samples * update templates --------- Co-authored-by: aaron.pritzlaff <aaron@kindservices.co.uk>
14 lines
449 B
Docker
14 lines
449 B
Docker
FROM virtuslab/scala-cli:latest as build
|
|
WORKDIR /app
|
|
COPY ./Server.scala /app/
|
|
# note: this assumes a published server stub jar.
|
|
# If you've published this locally, you would need to copy those into this image,
|
|
# perhaps by using coursier fetch
|
|
RUN scala-cli --power package /app/Server.scala --assembly -o app.jar
|
|
|
|
# The main image
|
|
FROM openjdk:23-slim
|
|
WORKDIR /app
|
|
COPY --from=build /app/app.jar /app/
|
|
ENTRYPOINT ["java", "-jar", "/app/app.jar"]
|