mirror of
https://github.com/Uttkarsh-raj/Plannerly.git
synced 2026-06-16 07:35:34 +02:00
issues
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
PORT=8000
|
||||
MONGODB_URL="mongodb+srv://uttkarsh:OQ4W6JoirmMLpUIm@cluster0.p62gfpi.mongodb.net/"
|
||||
SECRET_KEY= "MHcCAQEEIP8dCJ/YyI9qEhGpZnMbceoOqexyjPfrZPPl9kTk+PzjoAoGCCqGSM49AwEHoUQDQgAExVZopSiLjT5fHbeD6Nk51XsLquW6k/I+/nWiIuF+W7zpn7W0kHuHXj1M4xrWv1azJkskFwZt9lLW/wx8R5v+XQ=="
|
||||
@@ -1 +0,0 @@
|
||||
.env
|
||||
@@ -0,0 +1,16 @@
|
||||
# Use the official Golang image with a specific version.
|
||||
FROM golang:1.20.5-alpine
|
||||
|
||||
RUN mkdir /app
|
||||
|
||||
ADD . /app
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . /app/
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
RUN go build -o main .
|
||||
|
||||
CMD [ "/app/main" ]
|
||||
@@ -19,3 +19,7 @@ func main() {
|
||||
routes.TaskRoutes(router) //tasks routes
|
||||
log.Fatal(router.Run(":" + port))
|
||||
}
|
||||
|
||||
//to run the docker file use the following line of code
|
||||
// docker run -p 8081:8080 -it plannerly-backend
|
||||
// map the 8080 port of the docker file to 8081 in local (since it was not free) and then run "-it dockerFileName"
|
||||
|
||||
Reference in New Issue
Block a user