File size: 872 Bytes
04dd942
602b16a
 
04dd942
 
72e6f99
602b16a
 
 
 
 
 
 
 
 
 
 
04dd942
602b16a
 
 
 
 
 
 
361422a
ffb7bcd
 
602b16a
 
d75382d
602b16a
fd03ac1
602b16a
 
72e6f99
602b16a
4d610e2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
ARG NODE_VERSION=16.15.1
FROM node:${NODE_VERSION}-slim

ARG GO_VERSION=1.18.3
ARG BUD_VERSION=main

RUN node -v

# Install basic dependencies
RUN apt-get -qq update \
  && apt-get -qq -y install curl git make gcc g++ \
  && rm -rf /var/lib/apt/lists/*

# Install Go
RUN curl -L --output - https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz | tar -xz -C /usr/local --strip-components 1
RUN go version
ENV PATH "/root/go/bin:${PATH}"

# Install Bud
RUN git clone https://github.com/livebud/bud /bud
WORKDIR /bud
RUN git checkout $BUD_VERSION
RUN make install
RUN go install .
RUN bud version

# be10f835
RUN git clone https://github.com/1005281342/user-manager.git 
# Install dependencies and build the application
WORKDIR user-manager
RUN git pull
RUN npm install

# Build the application
RUN bud build

# Start the service
CMD ["./bud/app", "--listen", "0.0.0.0:3000"]