Skip to content

Commit

Permalink
chron: 优化镜像
Browse files Browse the repository at this point in the history
  • Loading branch information
jamebal committed May 3, 2024
1 parent 01a166f commit de9577a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_jdk17_ffmpeg_nvidia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: docker/nvidia
context: .
file: docker/nvidia/Dockerfile
push: true
tags: jmal/jdk17_ffmpeg_nvidia:latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_jdk_ffmpeg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: docker
context: .
file: docker/Dockerfile
push: true
tags: jmal/jdk17_ffmpeg:latest
Expand Down
5 changes: 5 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ FROM eclipse-temurin:17-jre
RUN apt-get update && \
apt-get install -y ffmpeg libavcodec-extra

# 设置环境变量
ENV LANG=en_US.UTF-8 \
LANGUAGE=en_US:en \
LC_ALL=en_US.UTF-8

# 设置时区
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

Expand Down
5 changes: 0 additions & 5 deletions docker/nvidia/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ ENV LANG=en_US.UTF-8 \
NVIDIA_DRIVER_CAPABILITIES=compute,utility,video \
NVIDIA_VISIBLE_DEVICES=all

# 设置环境变量
ENV LANG=en_US.UTF-8 \
LANGUAGE=en_US:en \
LC_ALL=en_US.UTF-8

FROM eclipse-temurin:17-jre AS java-base

# 合并 CUDA 和 Java 环境
Expand Down

0 comments on commit de9577a

Please sign in to comment.