瀏覽代碼

test build change

Stefan McShane 2 年之前
父節點
當前提交
4500e2d35d
共有 2 個文件被更改,包括 14 次插入8 次删除
  1. 1 1
      .github/workflows/porter_stack_porter-ui.yml
  2. 13 7
      zarf/docker/Dockerfile.production

+ 1 - 1
.github/workflows/porter_stack_porter-ui.yml

@@ -1,7 +1,7 @@
 "on":
   push:
     branches:
-      - master
+      - sms/test
 name: Deploy Porter to Internal Tooling
 jobs:
   build-go:

+ 13 - 7
zarf/docker/Dockerfile.production

@@ -1,10 +1,16 @@
+FROM node:16
+
+WORKDIR /app
+COPY dashboard .
+RUN npm run build
+
 # All build artifacts are built in github actions, and copied in
 # Ubuntu is used to match Github action, and use github action caching instead of docker caching
-FROM ubuntu as runner
-RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates tzdata
+# FROM ubuntu as runner
+# RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates tzdata
 
-WORKDIR /porter
-COPY bin/app /porter/
-COPY bin/migrate /porter/
-COPY build/ /porter/static
-RUN chmod +x /porter/app /porter/migrate
+# WORKDIR /porter
+# COPY bin/app /porter/
+# COPY bin/migrate /porter/
+# COPY build/ /porter/static
+# RUN chmod +x /porter/app /porter/migrate