Skip to content

Commit

Permalink
feat: dockerfile added
Browse files Browse the repository at this point in the history
  • Loading branch information
RawanMostafa08 committed Sep 21, 2024
1 parent 8202b0a commit 6b606ba
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 21 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM golang:latest AS builder

WORKDIR /app

COPY . .

RUN go mod download

RUN go build -o httpserver ./cmd/httpserver/main.go

EXPOSE 8080

ENTRYPOINT [ "/app/httpserver" ]
20 changes: 0 additions & 20 deletions Dockerfile.http

This file was deleted.

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/codescalersinternships/Datetime-server-RawanMostafa

go 1.23.1
go 1.23

require (
github.com/bytedance/sonic v1.12.2 // indirect
Expand Down

0 comments on commit 6b606ba

Please sign in to comment.