mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-01-24 16:29:07 +00:00
revert Dockerfile until we get it working
This commit is contained in:
parent
9731d79ceb
commit
22897abcb8
@ -1,5 +1,5 @@
|
|||||||
# Base image to share ENV vars that activate VENV.
|
### STAGE 1: Build ###
|
||||||
FROM quay.io/sartography/node:latest AS base
|
FROM quay.io/sartography/node:latest
|
||||||
|
|
||||||
RUN mkdir /app
|
RUN mkdir /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
@ -7,10 +7,8 @@ WORKDIR /app
|
|||||||
# this matches total memory on spiffworkflow-demo
|
# this matches total memory on spiffworkflow-demo
|
||||||
ENV NODE_OPTIONS=--max_old_space_size=2048
|
ENV NODE_OPTIONS=--max_old_space_size=2048
|
||||||
|
|
||||||
# Setup image for installing JS dependencies.
|
ADD package.json /app/
|
||||||
FROM base AS setup
|
ADD package-lock.json /app/
|
||||||
|
|
||||||
COPY . /app/
|
|
||||||
|
|
||||||
# npm ci because it respects the lock file.
|
# npm ci because it respects the lock file.
|
||||||
# --ignore-scripts because authors can do bad things in postinstall scripts.
|
# --ignore-scripts because authors can do bad things in postinstall scripts.
|
||||||
@ -18,18 +16,8 @@ COPY . /app/
|
|||||||
# npx can-i-ignore-scripts can check that it's safe to ignore scripts.
|
# npx can-i-ignore-scripts can check that it's safe to ignore scripts.
|
||||||
RUN npm ci --ignore-scripts
|
RUN npm ci --ignore-scripts
|
||||||
|
|
||||||
|
COPY . /app/
|
||||||
|
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# Final image without setup dependencies.
|
|
||||||
FROM base AS final
|
|
||||||
|
|
||||||
LABEL source="https://github.com/sartography/spiff-arena"
|
|
||||||
LABEL description="Software development platform for building, running, and monitoring executable diagrams"
|
|
||||||
|
|
||||||
# WARNING: On localhost frontend assumes backend is one port lowe.
|
|
||||||
ENV PORT0=7001
|
|
||||||
|
|
||||||
COPY --from=setup /app/build /app/build
|
|
||||||
COPY --from=setup /app/bin /app/bin
|
|
||||||
|
|
||||||
ENTRYPOINT ["/app/bin/boot_server_in_docker"]
|
ENTRYPOINT ["/app/bin/boot_server_in_docker"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user