Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
FROM golang:1.
|
| 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"]
|