xiaopeng163 / docker.tips Goto Github PK
View Code? Open in Web Editor NEWDocker notes
Home Page: https://www.docker.tips
License: Apache License 2.0
Docker notes
Home Page: https://www.docker.tips
License: Apache License 2.0
111111111111
dockerfile:
FROM golang:alpine3.15 AS builder
COPY app.go /src/app.go
WORKDIR /src
RUN go build app.go
FROM alpine:3.17.0
COPY --from=builder /src/app /src/app
EXPOSE 8080
CMD ./src/app
golang:
package main
import (
"fmt"
"net/http"
)
func test(w http.ResponseWriter,r *http.Request){
w.Write([]byte("Hello golang"))
}
func main() {
http.HandleFunc("/",test)
err:=http.ListenAndServe(":8080",nil)
if err!=nil{
fmt.Println(err)
}
}
在dockertips.readthedocs.io网站上,《1.Docker 的介绍和安装》目录下的《在 Linux 系统上安装 Docker》页面空白,无法显示任何内容。
网址:https://dockertips.readthedocs.io/en/latest/docker-install/linux-setup.html
第5章,4~6节内容空白
content:
FROM ubuntu:20.04 --> FROM ubuntu:21.04
location
3. 镜像的创建管理和发布
Dockerfile 介绍
一个Dockerfile的基本结构
Dockerfile
一个Dockerfile的基本结构
Dockerfile
FROM ubuntu:20.04
RUN apt-get update &&
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y python3.9 python3-pip python3.9-dev
ADD hello.py /
CMD ["python3", "/hello.py"]
以下小节内容为空
3. 镜像的创建管理和发布
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.