mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-29 21:28:52 +00:00
[update]添加Dockerfile
This commit is contained in:
2
.dockerignore
Normal file
2
.dockerignore
Normal file
@@ -0,0 +1,2 @@
|
||||
dist
|
||||
node_modules
|
||||
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM node:10 as stage-build
|
||||
WORKDIR /data
|
||||
ADD ./package.json /data/package.json
|
||||
ADD ./yarn.lock /data/yarn.lock
|
||||
RUN yarn
|
||||
ADD . /data
|
||||
RUN yarn build:prod
|
||||
|
||||
|
||||
FROM nginx:alpine
|
||||
COPY --from=stage-build /data/dist /opt/lina/
|
||||
# COPY ./src/assets/i18n /opt/luna/i18n
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
8
nginx.conf
Normal file
8
nginx.conf
Normal file
@@ -0,0 +1,8 @@
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
location / {
|
||||
try_files $uri / /index.html;
|
||||
alias /opt/lina/;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user