Skip to content

Commit

Permalink
feat(docker): update Dockerfile labels and fix apt-get update
Browse files Browse the repository at this point in the history
chore(docker.base.env): adjust alignment for BUILD_FROM definition
  • Loading branch information
entelecheia committed Aug 21, 2023
1 parent c39e9e8 commit 9b6020f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .docker/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@
ARG ARG_BUILD_FROM="python:3.9-slim-bookworm"
FROM $ARG_BUILD_FROM

LABEL org.opencontainers.image.source=/~https://github.com/entelecheia/hyperfast-docker-template
LABEL org.opencontainers.image.description="Hyperfast Docker Template is a powerful tool that leverages copier to streamline the creation of new Docker projects."
LABEL org.opencontainers.image.licenses=MIT
# change apt source to korea
# RUN sed -i 's@archive.ubuntu.com@kr.archive.ubuntu.com@g' /etc/apt/sources.list
# Setting this argument prevents interactive prompts during the build process
ARG DEBIAN_FRONTEND=noninteractive
# Updates the image and installs necessary packages
RUN apt-get update && apt-get install -y ca-certificates
RUN apt-get update \
RUN apt-get update --fix-missing \
&& apt-get install -y curl sudo software-properties-common \
fontconfig fonts-nanum tzdata locales locales-all \
# Adds PPA for the latest git version
Expand Down
2 changes: 1 addition & 1 deletion .docker/docker.base.env
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ SYSTEM_HOSTNAME=${SYSTEM_HOSTNAME:-"$(hostname)"} # The hostname of the Docker c

IMAGE_TAG="${VERSION}-${VARIANT}" # The tag of the Docker image
IMAGE_NAME="ghcr.io/${DOCKER_USERNAME}/${DOCKER_NAME}:${IMAGE_TAG}" # The full name of the Docker image
BUILD_FROM="mcr.microsoft.com/devcontainers/python:3.9" # The base image for the Docker build
BUILD_FROM="mcr.microsoft.com/devcontainers/python:3.9" # The base image for the Docker build

WORKSPACE_ROOT="/home/${USERNAME}/workspace" # The workspace directory on the host machine
CONTAINER_WORKSPACE_ROOT="/workspace" # The workspace directory in the Docker container
Expand Down

0 comments on commit 9b6020f

Please sign in to comment.