k8s and dockerfiles
This commit is contained in:
1 parent
278e1c4a95
commit
3a0525fffe
4 files changed
+79
No files matched your search
@@ -0,0 +1,12 @@
|
||||
# build step
|
||||
FROM node:16 AS build-env
|
||||
WORKDIR /opt/crates/client
|
||||
|
||||
COPY . ./
|
||||
RUN npm run build
|
||||
|
||||
# static server
|
||||
FROM nginx
|
||||
WORKDIR /srv/app
|
||||
COPY --from=build-env /opt/crates/client/build /srv/app
|
||||
COPY ./client.nginx.conf /etc/nginx/nginx.conf
|
||||
Reference in new issue
Block a user