Skip to content

Commit

Permalink
Merge pull request #2413 from lf-lang/python-alpine
Browse files Browse the repository at this point in the history
Default Docker image for Python changed to Alpine
  • Loading branch information
lhstrh authored Sep 29, 2024
2 parents 1ad92a1 + e15a0c0 commit 4b2b3c9
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @author Hou Seng Wong
*/
public class PythonDockerGenerator extends CDockerGenerator {
public static final String DEFAULT_BASE_IMAGE = "python:3.10-slim";
public static final String DEFAULT_BASE_IMAGE = "python:3.10-alpine";

public PythonDockerGenerator(LFGeneratorContext context) {
super(context);
Expand All @@ -20,15 +20,6 @@ public String defaultImage() {
return DEFAULT_BASE_IMAGE;
}

@Override
protected String generateRunForInstallingDeps() {
if (builderBase().equals(defaultImage())) {
return "RUN set -ex && apt-get update && apt-get install -y python3-pip && pip install cmake";
} else {
return "# (Skipping installation of build dependencies; custom base image.)";
}
}

@Override
protected String generateCopyOfExecutable() {
var lfModuleName = context.getFileConfig().name;
Expand Down

0 comments on commit 4b2b3c9

Please sign in to comment.