4/8일자 완료 저장(delayed)
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,5 @@
|
|||||||
|
FROM ubuntu:latest
|
||||||
|
|
||||||
|
RUN mkdir /test && \
|
||||||
|
fallocate -l 100m /test/dummy && \
|
||||||
|
rm /test/dummy
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
FROM golang AS builder
|
||||||
|
WORKDIR /myapp
|
||||||
|
COPY helloworld.go .
|
||||||
|
RUN go env -w GO111MODULE=auto
|
||||||
|
RUN go build -o helloworld.exe .
|
||||||
|
|
||||||
|
FROM alpine AS runtime
|
||||||
|
WORKDIR /myapp
|
||||||
|
COPY --from=builder /myapp/helloworld.exe .
|
||||||
|
ENTRYPOINT ["./helloworld.exe"]
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import "fmt"
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
fmt.Println("Hello World")
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
FROM ubuntu:latest
|
||||||
|
|
||||||
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get -y install apache2
|
||||||
|
RUN echo "ServerName localhost" >> etc/apache2/apache2.conf
|
||||||
|
ADD hello.html /var/www/html/
|
||||||
|
CMD apachectl -D FOREGROUND
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Document</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Hello Docker !!!!</h1>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user