Skip to content

Commit

Permalink
changing dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
marianina8 committed May 24, 2024
1 parent dedac2f commit 28adba6
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
# Use an official Golang runtime as a parent image
FROM golang:1.19

# Copy go.mod and go.sum files
COPY . /app

# Set the current working directory inside the container
WORKDIR /app

# Copy go.mod and go.sum files
COPY go.mod go.sum ./

# Download dependencies
RUN go mod download

# Copy the rest of the application code
COPY . .

# Build the Go app
RUN go build -o timetravel main.go

Expand Down

0 comments on commit 28adba6

Please sign in to comment.