Giter Club home page Giter Club logo

docker-nginx-ssh's Introduction

docker-nginx-ssh

保留了nginx原镜像的所有功能, 保持设置一致(比如使用.template来让环境变量生效)

和原始项目相比

  • 删除了nginx.conf使用nginx原镜像的配置文件
  • 在entrypoint.sh中执行了nginx原镜像的docker-entrypoint.sh
  • 删除了/public目录,
  • /usr/share/nginx/html目录的所有者改为publisher:publisher
  • 固定了nginx image的版本为1.25

Retained all the features of the original nginx image and kept the settings consistent (such as using .template to make environment variables effective).

Compared to the original project

  • Removed nginx.conf to use the configuration file of the original nginx image
  • Executed docker-entrypoint.sh from the original nginx image in entrypoint.sh
  • Removed the /public directory.
  • Changed the owner of the /usr/share/nginx/html directory to publisher:publisher
  • Fixed the nginx image version to 1.25
docker run -it -p 80:80 -p 22:22 \
  -e SSH_HOST_RSA_KEY="SSH_HOST_RSA_KEY_CONTENS" \
  -e SSH_HOST_RSA_PUBLIC_KEY="SSH_HOST_RSA_PUBLIC_KEY_CONTENS" \
  -e SSH_HOST_ECDSA_KEY="ECDSA_KEY_CONTENTS" \
  -e SSH_HOST_ECDSA_PUBLIC_KEY="SSH_HOST_ECDSA_PUBLIC_KEY_CONTENTS" \
  -e SSH_HOST_ED25519_KEY="SSH_HOST_ED25519_KEY_CONTENTS" \
  -e SSH_HOST_ED25519_PUBLIC_KEY="SSH_HOST_ED25519_PUBLIC_KEY_CONTENTS" \
  -e SSH_AUTHORIZED_KEY="Users authorized keys" \
  "you need to build this image"

docker-nginx-ssh's People

Contributors

kuroicc avatar teran avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.