fix: 修复ubuntu基底镜像构建mysql

main
root 2 years ago
parent f87fe5049b
commit f09fc04388
  1. 8
      mysql-5.7.38/dockerfile.2image
  2. 2
      mysql-5.7.38/dockerfile.bin2image

@ -1,10 +1,4 @@
# FROM mysql-bin:5.7.38-ubuntu
# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh"
#
# PLEASE DO NOT EDIT IT DIRECTLY.
#
FROM arm64v8/centos:centos7.9.2009
# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added # add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
RUN groupadd -r mysql && useradd -r -g mysql mysql RUN groupadd -r mysql && useradd -r -g mysql mysql

@ -1,4 +1,4 @@
FROM ubuntu:20.4 FROM ubuntu:20.04
MAINTAINER 1793360097@qq.com MAINTAINER 1793360097@qq.com
# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added # add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
RUN groupadd -r mysql && useradd -r -g mysql mysql && apt-get update && apt-get install -y --no-install-recommends gnupg dirmngr wget curl && rm -rf /var/lib/apt/lists/* && mkdir /docker-entrypoint-initdb.d RUN groupadd -r mysql && useradd -r -g mysql mysql && apt-get update && apt-get install -y --no-install-recommends gnupg dirmngr wget curl && rm -rf /var/lib/apt/lists/* && mkdir /docker-entrypoint-initdb.d

Loading…
Cancel
Save