File tree Expand file tree Collapse file tree 5 files changed +18
-32
lines changed Expand file tree Collapse file tree 5 files changed +18
-32
lines changed Original file line number Diff line number Diff line change 87
87
cd $IMAGE_PATH_CRAWLAB_BACKEND
88
88
docker build . --file Dockerfile --tag image
89
89
- name : Log into registry
90
- run : echo ${{ secrets.DOCKER_PASSWORD}} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
90
+ run : echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
91
91
- name : Push image
92
92
run : |
93
93
IMAGE_VERSION=${{needs.setup.outputs.version}}
@@ -109,7 +109,7 @@ jobs:
109
109
cd $IMAGE_PATH_CRAWLAB_FRONTEND
110
110
docker build . --file Dockerfile --tag image
111
111
- name : Log into registry
112
- run : echo ${{ secrets.DOCKER_PASSWORD}} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
112
+ run : echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
113
113
- name : Push image
114
114
run : |
115
115
IMAGE_VERSION=${{needs.setup.outputs.version}}
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ FROM crawlabteam/crawlab-backend:latest AS backend-build
2
2
3
3
FROM crawlabteam/crawlab-frontend:latest AS frontend-build
4
4
5
+ FROM crawlabteam/crawlab-public-plugins:latest AS public-plugins-build
6
+
5
7
# images
6
8
FROM crawlabteam/crawlab-base:latest
7
9
@@ -18,11 +20,11 @@ RUN cp /opt/bin/crawlab /usr/local/bin/crawlab-server
18
20
# copy frontend files
19
21
COPY --from=frontend-build /app/dist /app/dist
20
22
23
+ # copy public-plugins files
24
+ COPY --from=public-plugins-build /app/plugins /app/plugins
25
+
21
26
# copy nginx config files
22
27
COPY ./nginx/crawlab.conf /etc/nginx/conf.d
23
28
24
- # install plugins
25
- RUN /bin/bash /app/bin/docker-install-plugins.sh
26
-
27
29
# start backend
28
30
CMD ["/bin/bash" , "/app/bin/docker-init.sh" ]
Original file line number Diff line number Diff line change 1
- FROM golang:1.16
1
+ FROM golang:1.16 AS build
2
2
3
3
WORKDIR /go/src/app
4
4
COPY . .
@@ -9,3 +9,7 @@ ENV GO111MODULE on
9
9
RUN go mod tidy \
10
10
&& go install -v ./...
11
11
12
+ FROM alpine:3.14
13
+
14
+ # copy files
15
+ COPY --from=backend-build /go/bin/crawlab /go/bin/crawlab
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- FROM node:12
1
+ FROM node:12 AS build
2
2
3
3
ADD . /app
4
4
WORKDIR /app
5
5
RUN rm /app/.npmrc
6
6
7
7
# install frontend
8
8
RUN yarn install && yarn run build:docker
9
+
10
+ FROM alpine:3.14
11
+
12
+ # copy files
13
+ COPY --from=build /app/dist /app/dist
You can’t perform that action at this time.
0 commit comments