tebakaja commited on
Commit
34c0b26
·
1 Parent(s): a1844a7

deployment

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -13
Dockerfile CHANGED
@@ -1,31 +1,28 @@
1
- FROM golang:1.21.13-alpine3.20
2
 
3
  LABEL creator="al-fariqy raihan"
4
 
5
  ENV APP_DIR=/thesis_forecasting_website \
6
- GO111MODULE=on \
7
- CGO_ENABLED=0
8
 
9
  WORKDIR ${APP_DIR}
10
 
11
- RUN apt-get update && \
12
- apt-get install -y git git-lfs curl
13
 
14
  COPY go.mod go.sum ./
15
-
16
  RUN go mod download
17
 
18
  COPY . .
19
 
20
- RUN go build -o main . && \
21
- go clean -modcache && \
22
- rm -rf /var/cache/apk/* \
23
- /root/.cache/go-build /root/go/pkg
24
 
25
- RUN git lfs install && \
26
- git clone https://huggingface.co/datasets/qywok/indonesia_stocks
27
 
28
- RUN chmod -R 755 /thesis_forecasting_website
29
 
30
  EXPOSE 7860
31
 
 
1
+ FROM golang:1.21.13-alpine3.20
2
 
3
  LABEL creator="al-fariqy raihan"
4
 
5
  ENV APP_DIR=/thesis_forecasting_website \
6
+ GO111MODULE=on \
7
+ CGO_ENABLED=0
8
 
9
  WORKDIR ${APP_DIR}
10
 
11
+ RUN apk add --no-cache git git-lfs curl \
12
+ && git lfs install
13
 
14
  COPY go.mod go.sum ./
 
15
  RUN go mod download
16
 
17
  COPY . .
18
 
19
+ RUN go build -o main . \
20
+ && go clean -modcache \
21
+ && rm -rf /root/.cache/go-build /root/go/pkg
 
22
 
23
+ RUN git clone https://huggingface.co/datasets/qywok/indonesia_stocks
 
24
 
25
+ RUN chmod -R 755 ${APP_DIR}
26
 
27
  EXPOSE 7860
28