mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-22 02:34:26 +08:00
add environment variables and modify path
This commit is contained in:
+6
-2
@@ -1,18 +1,22 @@
|
|||||||
# Build backend binary file
|
# Build backend binary file
|
||||||
FROM golang:1.16.5-alpine3.13 AS be-builder
|
FROM golang:1.16.5-alpine3.13 AS be-builder
|
||||||
|
ARG RELEASE_BUILD
|
||||||
|
ENV RELEASE_BUILD=$RELEASE_BUILD
|
||||||
WORKDIR /go/src/github.com/mayswind/ezbookkeeping
|
WORKDIR /go/src/github.com/mayswind/ezbookkeeping
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN docker/backend-build-pre-setup.sh
|
RUN docker/backend-build-pre-setup.sh
|
||||||
RUN apk add git gcc g++ libc-dev
|
RUN apk add git gcc g++ libc-dev
|
||||||
RUN build.sh backend
|
RUN ./build.sh backend
|
||||||
|
|
||||||
# Build frontend files
|
# Build frontend files
|
||||||
FROM node:14.17.0-alpine3.13 AS fe-builder
|
FROM node:14.17.0-alpine3.13 AS fe-builder
|
||||||
|
ARG RELEASE_BUILD
|
||||||
|
ENV RELEASE_BUILD=$RELEASE_BUILD
|
||||||
WORKDIR /go/src/github.com/mayswind/ezbookkeeping
|
WORKDIR /go/src/github.com/mayswind/ezbookkeeping
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN docker/frontend-build-pre-setup.sh
|
RUN docker/frontend-build-pre-setup.sh
|
||||||
RUN apk add git
|
RUN apk add git
|
||||||
RUN build.sh frontend
|
RUN ./build.sh frontend
|
||||||
|
|
||||||
# Package docker image
|
# Package docker image
|
||||||
FROM alpine:3.13.5
|
FROM alpine:3.13.5
|
||||||
|
|||||||
Reference in New Issue
Block a user