File: Dockerfile.linux-x86_64-musl

package info (click to toggle)
snappy-java 1.1.10.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,300 kB
  • sloc: java: 5,747; sh: 2,506; xml: 431; cpp: 295; makefile: 203
file content (36 lines) | stat: -rw-r--r-- 767 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM alpine:3.18

# Set workspace directory
WORKDIR /work

# Copy the project to the container
COPY . .

# Install build dependencies
RUN apk add --no-cache \
    openjdk8 \
    cmake \
    make \
    gcc \
    g++ \
    musl-dev \
    linux-headers \
    git \
    util-linux \
    bash \
    curl

# Install SBT
RUN curl -L "https://github.com/sbt/sbt/releases/download/v1.9.7/sbt-1.9.7.tgz" | tar xz -C /usr/local
ENV PATH="/usr/local/sbt/bin:${PATH}"

# Install python/pip
ENV PYTHONUNBUFFERED=1
RUN apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python
RUN python3 -m ensurepip
RUN pip3 install --no-cache --upgrade pip setuptools

# Set Env Vars
ENV CC=gcc CXX=g++
ENV JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk
ENV PATH="${JAVA_HOME}/bin:${PATH}"