Unverified Commit 70e32637 authored by 远浅's avatar 远浅 Committed by GitHub

build: update dockerfile for using cache to speed up (#1372)

parent c04a31dc
...@@ -2,9 +2,13 @@ ...@@ -2,9 +2,13 @@
FROM node:18.12.1-alpine3.16 AS frontend FROM node:18.12.1-alpine3.16 AS frontend
WORKDIR /frontend-build WORKDIR /frontend-build
COPY ./web/package.json ./web/yarn.lock ./
RUN yarn
COPY ./web/ . COPY ./web/ .
RUN yarn && yarn build RUN yarn build
# Build backend exec file. # Build backend exec file.
FROM golang:1.19.3-alpine3.16 AS backend FROM golang:1.19.3-alpine3.16 AS backend
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment