Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
1 change: 0 additions & 1 deletion README.md

This file was deleted.

28 changes: 27 additions & 1 deletion day3/prac2/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1 +1,27 @@
# 코드를 추가해주세요
name: compose-test
services:
webapp:
image: python:3.13-slim
container_name: flask-app
ports:
- "8080:5000"
volumes:
- ./app:/app
working_dir: /app
command: sh -c "pip install --no-cache-dir flask redis && python app.py"
depends_on:
redis:
condition: service_healthy

redis:
image: redis:7.0
container_name: redis-db
ports:
- "6379:6379"
volumes:
- ./data:/data
healthcheck:
test: [ 'CMD', 'redis-cli', 'ping' ]
interval: 5s
timeout: 3s
retries: 3
Binary file added day4/prac1/.DS_Store
Binary file not shown.
20 changes: 20 additions & 0 deletions day4/prac1/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<<<<<<< HEAD
FROM golang:1.24
WORKDIR /src
COPY ./main.go .
RUN go build -o /bin/hello ./main.go
CMD ["/bin/hello"]
=======
FROM golang:1.24 AS builder
WORKDIR /src
COPY ./main.go .
ARG TARGETOS=linux
ARG TARGETARCH=amd64
ENV CGO_ENABLED=0
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} \
go build -ldflags="-s -w" -o hello main.go

FROM scratch
COPY --from=builder /src/hello /hello
ENTRYPOINT ["/hello"]
>>>>>>> 77187a3 (single multi compare - 권지은)
5 changes: 5 additions & 0 deletions day4/prac1/Dockerfile.single
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM golang:1.24
WORKDIR /src
COPY ./main.go .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /bin/hello ./main.go
CMD ["/bin/hello"]
7 changes: 7 additions & 0 deletions day4/prac1/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package main

import "fmt"

func main() {
fmt.Println("Hello, World!")
}
Binary file added day4/screenshot/compare 1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added day4/screenshot/multi 1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added day4/screenshot/result 1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added day4/screenshot/single 1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.