mirror of
https://github.com/simon987/toolbox.git
synced 2025-12-14 07:49:02 +00:00
Dockerize
This commit is contained in:
14
toolbox-web/Dockerfile
Normal file
14
toolbox-web/Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
||||
FROM node:10 as build
|
||||
|
||||
COPY ./ /app
|
||||
|
||||
WORKDIR app
|
||||
RUN npm install
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:alpine
|
||||
|
||||
COPY --from=build /app/dist /webroot
|
||||
COPY nginx.conf /etc/nginx/
|
||||
|
||||
EXPOSE 80
|
||||
Reference in New Issue
Block a user