Skip to content

RUN tlmgr update --self fails in Dockerfile #35

@LyndonArmitage

Description

@LyndonArmitage

I tried to run the docker build with the following code:

docker build --compress -t visual-scala-reference .

Which failed on step 3:

 => [2/8] RUN apk update && apk add --no-cache make hugo inotify-tools                                                                                                                                                                    10.9s
 => ERROR [3/8] RUN tlmgr update --self                                                                                                                                                                                                    4.5s
------
 > [3/8] RUN tlmgr update --self:
4.394
4.394 tlmgr: Local TeX Live (2020) is older than remote repository (2023).
4.394 Cross release updates are only supported with
4.394   update-tlmgr-latest(.sh/.exe) --update
4.394 See https://tug.org/texlive/upgrade.html for details.
------
Dockerfile:5
--------------------
   3 |     RUN apk update && apk add --no-cache make hugo inotify-tools
   4 |
   5 | >>> RUN tlmgr update --self
   6 |     RUN tlmgr install standalone
   7 |     RUN tlmgr install pgf
--------------------
ERROR: failed to solve: process "/bin/sh -c tlmgr update --self" did not complete successfully: exit code: 1

The logs link to https://tug.org/texlive/upgrade.html which suggests a way of upgrading, alternatively it suggests building with the newer TexLive installation.

This Dockerfile uses this repos Docker image as a base: https://github.com/superruzafa/docker-tinytex

Perhaps the source image needs updating? DockerHub lists a 0.5 tag that was updated a year ago compared to the 0.2 tag from 3 years ago but switching to it still results in the error:

 tlmgr: Local TeX Live (2022) is older than remote repository (2023).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions