윤준석

ADD: deploymeny configuration

Dockerfile docker-compose.yml, deploy/undeployment shell script
FROM golang:1.17.3-alpine AS builder
WORKDIR /src
COPY . /src
RUN go build -o bunjang_api_server
FROM alpine
WORKDIR /src
COPY --from=builder /src/bunjang_api_server /src/bunjang_api_server
EXPOSE 8080
CMD ["./bunjang_api_server"]
#!/usr/bin/env bash
docker build -t bunjang-api-server .
docker-compose up -d
\ No newline at end of file
version: '3'
services:
joongna_api:
image: bunjang-api-server
restart: always
container_name: bunjang-api-server-container
ports:
- '18082:8080'
\ No newline at end of file
#!/usr/bin/env bash
docker-compose down
docker image rm bunjang-api-server
\ No newline at end of file