This commit is contained in:
parent
50b8bce72f
commit
0f0eea8468
@ -1,7 +1,5 @@
|
|||||||
name: Build image
|
name: Build image
|
||||||
on: [push]
|
on: [push]
|
||||||
env:
|
|
||||||
HTTPS_PROXY: "http://192.168.31.55:10809"
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
FROM oven/bun:1 as front
|
FROM oven/bun:1 as front
|
||||||
COPY . /build
|
COPY . /build
|
||||||
WORKDIR /build/wwwroot
|
WORKDIR /build/
|
||||||
RUN bun install && bun run build
|
RUN bun install && bun run build
|
||||||
|
|
||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
COPY --from=front /build/wwwroot/dist /usr/share/
|
COPY --from=front /build/dist /usr/share/
|
||||||
RUN rm /etc/nginx/conf.d/default.conf
|
RUN rm /etc/nginx/conf.d/default.conf
|
||||||
|
|
||||||
# 将自定义配置文件nginx.conf复制到容器内/etc/nginx/conf.d/目录
|
# 将自定义配置文件nginx.conf复制到容器内/etc/nginx/conf.d/目录
|
||||||
|
Loading…
Reference in New Issue
Block a user