mirror of
https://github.com/KevinMidboe/k9e.no.git
synced 2025-10-29 01:30:15 +00:00
* 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.
17 lines
205 B
Docker
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 .
|