Ashad001 commited on
Commit
32041a6
·
verified ·
1 Parent(s): a1d111a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM golang:1.22.3 as builder
2
 
3
  # Install Go if it's not already installed
4
  RUN if ! [ -x "$(command -v go)" ]; then echo "Installing Go..." && \
@@ -21,4 +21,4 @@ WORKDIR /app
21
  COPY --from=builder /app/main /app/
22
  RUN ls -l /app
23
  RUN pwd
24
- CMD ./main
 
1
+ FROM golang:1.21 as builder
2
 
3
  # Install Go if it's not already installed
4
  RUN if ! [ -x "$(command -v go)" ]; then echo "Installing Go..." && \
 
21
  COPY --from=builder /app/main /app/
22
  RUN ls -l /app
23
  RUN pwd
24
+ CMD ["./main"]