Skip to content

Commit

Permalink
Made an attempt to make docker images lighter. (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
Carbrex authored Mar 29, 2024
1 parent efc23fe commit 026ac7e
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion docker/lila-fishnet.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM sbtscala/scala-sbt:eclipse-temurin-jammy-21.0.2_13_1.9.9_3.4.0
FROM sbtscala/scala-sbt:eclipse-temurin-alpine-21.0.2_13_1.9.9_3.4.0

ENV CONFIG_FORCE_kamon_influxdb_authentication_token="secret"
ENV CONFIG_FORCE_kamon_influxdb_hostname="influxdb"
Expand Down
2 changes: 1 addition & 1 deletion docker/lila-search.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM sbtscala/scala-sbt:eclipse-temurin-jammy-21.0.2_13_1.9.9_2.13.13
FROM sbtscala/scala-sbt:eclipse-temurin-alpine-21.0.2_13_1.9.9_2.13.13

WORKDIR /lila-search

Expand Down
2 changes: 1 addition & 1 deletion docker/lila-ws.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM sbtscala/scala-sbt:eclipse-temurin-jammy-21.0.2_13_1.9.9_3.4.0
FROM sbtscala/scala-sbt:eclipse-temurin-alpine-21.0.2_13_1.9.9_3.4.0

WORKDIR /lila-ws

Expand Down
2 changes: 1 addition & 1 deletion docker/lila.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM sbtscala/scala-sbt:eclipse-temurin-jammy-21.0.2_13_1.9.9_3.4.0
FROM sbtscala/scala-sbt:eclipse-temurin-alpine-21.0.2_13_1.9.9_3.4.0

WORKDIR /lila

Expand Down
11 changes: 2 additions & 9 deletions docker/picfit.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
FROM golang:1.22.1-alpine3.19

RUN apk --no-cache add git make
FROM carbrex/thoas-picfit:latest

COPY assets/coach.png /uploads/coach.png
COPY assets/streamer.png /uploads/streamer.png

WORKDIR /opt

RUN git clone --depth 1 https://github.com/thoas/picfit.git
RUN make -C /opt/picfit build

ENTRYPOINT /opt/picfit/bin/picfit -c /mnt/config.json
ENTRYPOINT ["/picfit", "-c", "/mnt/config.json"]
4 changes: 3 additions & 1 deletion docker/ui.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM node:20.11.1-bookworm
FROM node:20.11.1-bookworm-slim

RUN apt update && apt install -y git && apt clean

RUN git config --global --add safe.directory /chessground
RUN git config --global --add safe.directory /lila
Expand Down
1 change: 1 addition & 0 deletions lila-docker
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ run_setup() {
docker compose build
docker compose --profile utils build
docker compose up -d

run_ui_build --update

setup_bbppairings
Expand Down

0 comments on commit 026ac7e

Please sign in to comment.