[JAVA] Docker, docker-compose for server-side Kotlin

It says server side, but I just wanted to show that it's not related to Android. The content is minimal.

I made it roughly to run the Apache Beam SDK locally.

For the time being, one minimum example has moved, so I will post it.


FROM gradle:5.4-jdk-alpine

ENV APP_ROOT /usr/src/app


USER root

RUN apk add --no-cache curl \
    zip \
    libc6-compat \

RUN ln -s /lib/libc.musl-x86_64.so.1 /lib/ld-linux-x86-64.so.2

RUN curl -s https://get.sdkman.io | bash

RUN bash -c " \
    source "$HOME/.sdkman/bin/sdkman-init.sh" && \
    sdk install kotlin 1.3.50 \



version: '2'
      context: .
      dockerfile: Dockerfile
      - .:/usr/src/app:cached

When moving

$ docker-compose run --rm app bash

Recommended Posts

Docker, docker-compose for server-side Kotlin
Install docker, docker-compose for debin10
Docker Compact Manual (3: docker-compose)
docker-compose command list (for Rails)
Introducing "" Monitoring Tool "" for monitoring Docker
People using docker Try using docker-compose
Rails 6 (API mode) + MySQL Docker environment creation by docker-compose (for Mac)
Environment construction with Docker for beginners
Docker on NILFS2 filesystem (for raspbianOS)
Articles referred to for incorporating Docker
[Folio LSP] Roughly Docker (for beginners)
Create Laravel environment with Docker (docker-compose)
Jupyter's Docker environment for running TensorFlow
Docker execution memo summarized for myself
Generics of Kotlin for Java developers
[WIP] Use NFS for Docker Volume
[Docker] Unsupported config option for services.app:'node'
docker single container restart for myself
Docker For Mac Slow: Countermeasure II
Docker related commands (notes for yourself)