Generate prod build inside container
This commit is contained in:
parent
3b265322e0
commit
40a4872f70
6
.github/workflows/pull_requests.yml
vendored
6
.github/workflows/pull_requests.yml
vendored
@ -44,7 +44,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
containerfiles: ./Containerfile
|
containerfiles: ./Containerfile
|
||||||
platforms: linux/arm64, linux/amd64
|
platforms: linux/amd64
|
||||||
oci: true
|
oci: true
|
||||||
|
|
||||||
- name: UI Tests
|
- name: UI Tests
|
||||||
@ -52,7 +52,3 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sudo apt-get install xvfb
|
sudo apt-get install xvfb
|
||||||
xvfb-run --server-args="-screen 0 1200x800x24" npx grunt testui
|
xvfb-run --server-args="-screen 0 1200x800x24" npx grunt testui
|
||||||
image:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
4
.github/workflows/releases.yml
vendored
4
.github/workflows/releases.yml
vendored
@ -72,6 +72,10 @@ jobs:
|
|||||||
containerfiles: ./Containerfile
|
containerfiles: ./Containerfile
|
||||||
platforms: linux/arm64, linux/amd64
|
platforms: linux/arm64, linux/amd64
|
||||||
oci: true
|
oci: true
|
||||||
|
# Webpack seems to use a lot of open files, increase the max open file limit to accomodate.
|
||||||
|
extra-args: |
|
||||||
|
--ulimit nofile=10000
|
||||||
|
|
||||||
|
|
||||||
- name: Upload Release Assets
|
- name: Upload Release Assets
|
||||||
if: success()
|
if: success()
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
FROM node:18-alpine AS build
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
RUN npm ci
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
FROM ghcr.io/static-web-server/static-web-server:2.25-alpine
|
FROM ghcr.io/static-web-server/static-web-server:2.25-alpine
|
||||||
|
|
||||||
COPY ./build/prod /public
|
COPY --from=build ./build/prod /public
|
||||||
|
Loading…
Reference in New Issue
Block a user