1
0
mirror of https://github.com/Uttkarsh-raj/Plannerly.git synced 2026-06-16 07:35:34 +02:00
This commit is contained in:
Uttkarsh-raj
2023-11-05 21:39:13 +05:30
parent dcad9560da
commit d1602cd9bd
4 changed files with 20 additions and 4 deletions
-3
View File
@@ -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
View File
@@ -1 +0,0 @@
.env
+16
View File
@@ -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" ]
+4
View File
@@ -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"