Skip to content
Snippets Groups Projects
Dockerfile 249 B
Newer Older
  • Learn to ignore specific revisions
  • David PETIT's avatar
    David PETIT committed
    # Version 
    FROM golang:latest 
    RUN mkdir /app 
    # Add fill and folder inside the docker
    ADD . /app/ 
    # CURRENT DIRECTORY (docker) 
    WORKDIR /app 
    # Library 
    RUN go mod download
    RUN go build -o main . 
    # Launch the application builder
    CMD ["/app/main"]