init
This commit is contained in:
9
docker_env/web/Dockerfile
Normal file
9
docker_env/web/Dockerfile
Normal file
@@ -0,0 +1,9 @@
|
||||
FROM node:16.19-alpine
|
||||
WORKDIR /web/
|
||||
COPY web/. .
|
||||
RUN yarn install
|
||||
RUN yarn build
|
||||
|
||||
FROM nginx:alpine
|
||||
COPY ./docker_env/nginx/my.conf /etc/nginx/conf.d/my.conf
|
||||
COPY --from=0 /web/dist /usr/share/nginx/html
|
||||
4
docker_env/web/DockerfileBuild
Normal file
4
docker_env/web/DockerfileBuild
Normal file
@@ -0,0 +1,4 @@
|
||||
FROM node:16.19-alpine
|
||||
WORKDIR /
|
||||
COPY ./web/package.json .
|
||||
RUN npm install -g yarn
|
||||
Reference in New Issue
Block a user