hzwluoye commited on
Commit
4330789
·
verified ·
1 Parent(s): 7010426

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -10,12 +10,12 @@ WORKDIR /app
10
 
11
  RUN go mod download
12
 
13
- RUN go build -o /app/aurora .
14
 
15
  FROM alpine:latest
16
 
17
  WORKDIR /app
18
-
19
  COPY --from=builder /app/aurora /app/aurora
20
 
21
  EXPOSE 8080
 
10
 
11
  RUN go mod download
12
 
13
+ RUN go build -ldflags "-s -w" -o /app/aurora .
14
 
15
  FROM alpine:latest
16
 
17
  WORKDIR /app
18
+ RUN apk add --no-cache tzdata
19
  COPY --from=builder /app/aurora /app/aurora
20
 
21
  EXPOSE 8080