-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
19 lines (19 loc) · 651 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Start from a Debian image with the latest version of Go installed
# and a workspace (GOPATH) configured at /go.
FROM golang:1.16.3
# Adding labels
LABEL project="ASCII-ART-WEB" \
authors="Dias1c, nrblzn" \
description="That's ascii web project" \
link="https://git.01.alem.school/Dias1c/ascii-art-web"
# Copy the local package files to the container's workspace.
RUN mkdir /ascii-art-web
ADD . /ascii-art-web
WORKDIR /ascii-art-web
# Build the program
RUN go build -o main .
# Document that the service listens on port 8080.
EXPOSE 8080
# Run the main command by default when the container starts.
# ENTRYPOINT /main
CMD ["./main"]