mirror of
https://github.com/KevinMidboe/k9e.no.git
synced 2026-01-05 00:35:53 +00:00
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.
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -1,6 +1,16 @@
|
||||
|
||||
# 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 ./build .
|
||||
COPY --from=builder ./build .
|
||||
|
||||
Reference in New Issue
Block a user