mirror of
https://github.com/morbalint/kemkas.git
synced 2026-07-18 03:13:46 +00:00
add Dockerfile
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
.git/
|
||||||
|
node_modules/
|
||||||
|
build/
|
||||||
|
.tool-versions
|
||||||
+16
@@ -0,0 +1,16 @@
|
|||||||
|
FROM node as builder
|
||||||
|
|
||||||
|
WORKDIR "/src"
|
||||||
|
|
||||||
|
COPY ["package.json", "yarn.lock", "./"]
|
||||||
|
|
||||||
|
RUN yarn install --frozen-lockfile
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN yarn build
|
||||||
|
|
||||||
|
FROM nginx as proxy
|
||||||
|
|
||||||
|
# COPY ./nginx/nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
|
COPY --from=builder "/src/build" "/usr/share/nginx/html"
|
||||||
Reference in New Issue
Block a user