Skip to content

Commit

Permalink
Merge pull request #1 from B3zaleel/dockerize-project
Browse files Browse the repository at this point in the history
Create Docker image building manifest
  • Loading branch information
B3zaleel authored Apr 22, 2023
2 parents cf952e7 + a598d4b commit fc30f5f
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .DockerIgnore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib

# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Go workspace file
go.work

# Project-specific files and/or folders
*.log
src/pkg
*.env
.info/
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# syntax=docker/dockerfile:1
FROM golang:1.18 AS build

WORKDIR /app

COPY go.mod .
COPY go.sum .

RUN go mod download

COPY src/ ./src

RUN go build -o fractage src/main.go

EXPOSE 6060

ENTRYPOINT ["/app/fractage"]

0 comments on commit fc30f5f

Please sign in to comment.