Files
k9e.no/Dockerfile
Kevin ecc197f08c CI: Vault variables (#5)
* Streamline publish and deploy w/ variables from local vault

* Publish should wait for build

* Updated Dockerfile to include compiling step within itself

Previously it dependent on /build folder existing in project folder,
this was done by CI pipeline sharing project directory between build and
publish steps. This is no separated and Dockerfile compiles and serves.
2024-02-12 00:29:10 +01:00

17 lines
205 B
Docker

# Build the project
FROM node:lts-iron as builder
ADD . .
RUN yarn
RUN yarn build
# RUN make test
FROM nginx:alpine
WORKDIR /app
COPY ./nginx.conf /etc/nginx/nginx.conf
COPY --from=builder ./build .