dockerfile for NGINX vuejs
Shell
#Dockerfile for VueJS
# Choose the Image which has Node installed already
FROM node:lts-alpine
# install simple http server for serving static content
RUN npm install -g http-server
# make the 'app' folder the current working directory
WORKDIR /app
# copy both 'package.json' and 'package-lock.json' (if available)
COPY package*.json ./
# install project dependencies
RUN npm install
# copy project files and folders to the current working directory (i.e. 'app' folder)
COPY . .
# build app for production with minification
RUN npm run build
EXPOSE 8080
CMD [ "http-server", "dist" ]#Docker file for VueJS using NGINX
# build stage
FROM node:lts-alpine as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# production stage
FROM nginx:stable-alpine as production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
Also in Shell:
- Title
- use python shell with git bash
- Category
- Shell
- Title
- ubuntu ram type
- Category
- Shell
- Title
- git config core.autocrlf true
- Category
- Shell
- Title
- tree process linux commnad
- Category
- Shell
- Title
- install terminator in ubuntu
- Category
- Shell
- Title
- how to kill a process in linux
- Category
- Shell
- Title
- delete a github repository using bash
- Category
- Shell
- Title
- install opencv raspberry pi
- Category
- Shell
- Title
- upgrade yarn version
- Category
- Shell
- Title
- git remove branch
- Category
- Shell
- Title
- ubuntu wsl windows 10
- Category
- Shell
- Title
- how to install enzyme
- Category
- Shell
- Title
- angular add universal
- Category
- Shell
- Title
- angular cli generate component
- Category
- Shell
- Title
- boolean constants in bash
- Category
- Shell
- Title
- linux give full permission to directory
- Category
- Shell
- Title
- git pull everything from development branch to feature branch
- Category
- Shell
- Title
- linux os upgrade
- Category
- Shell
- Title
- connection failed blueman.bluez.errors.dbusfailederror protocol not available
- Category
- Shell
- Title
- remove .svn recursively linux
- Category
- Shell
- Title
- linux generate file
- Category
- Shell
- Title
- how to install zlib
- Category
- Shell
- Title
- git set upstream
- Category
- Shell
- Title
- install docker linux
- Category
- Shell
- Title
- obs
- Category
- Shell
- Title
- debian 10 buster mysql
- Category
- Shell
- Title
- docker build
- Category
- Shell
- Title
- bily-101 github
- Category
- Shell
- Title
- docker getting-started
- Category
- Shell
- Title
- install chromedriver linux command line
- Category
- Shell
- Title
- git create new branch
- Category
- Shell
- Title
- linux show version
- Category
- Shell
- Title
- install phpmyadmin ubuntu 18.04
- Category
- Shell
- Title
- grep literal string
- Category
- Shell
- Title
- mkdir multiple directories
- Category
- Shell
- Title
- how to uninstall npm package
- Category
- Shell
- Title
- como agregar angular material al proyecto
- Category
- Shell
- Title
- install pgcli linux
- Category
- Shell
- Title
- install pipenv in ubuntu
- Category
- Shell
- Title
- install mvc 5.2.4 nugget console
- Category
- Shell
- Title
- free dock for linux
- Category
- Shell
- Title
- how to add extension to all files terminal
- Category
- Shell
- Title
- remove frmo staging git
- Category
- Shell
- Title
- linux loop over all arguments one by one
- Category
- Shell
- Title
- grep search for text in php files recursive
- Category
- Shell
- Title
- install ip addr on ubuntu
- Category
- Shell
- Title
- kill all python processes ubuntu
- Category
- Shell
- Title
- bash ls exclude substring
- Category
- Shell
- Title
- ubuntu install composer
- Category
- Shell
- Title
- find text in any file linux
- Category
- Shell
- Title
- scheduler ubuntu cmd
- Category
- Shell
- Title
- markdown with dimensions image github
- Category
- Shell
- Title
- Verificação de acesso de escrita [/srv/moodle/lib/editor/atto/plugins] Instalação abortada devido a falha de validação
- Category
- Shell
- Title
- split large file into smaller files
- Category
- Shell
- Title
- update ubuntu
- Category
- Shell
- Title
- bash tee stdout and stderr
- Category
- Shell
- Title
- Data path ".builders['app-shell']" should have required property 'class'.
- Category
- Shell
- Title
- git config --global http.sslverify "false" This command resolve my problem
- Category
- Shell
- Title
- git remove from from repo and stop tracking
- Category
- Shell
- Title
- powershell convert text 20MB to bytes
- Category
- Shell
- Title
- npm install @angular/fire firebase –save
- Category
- Shell
- Title
- zip command in linux
- Category
- Shell
- Title
- powershell append to file
- Category
- Shell
- Title
- linux permanent mount
- Category
- Shell
- Title
- error: src refspec master does not match any. git
- Category
- Shell
- Title
- shell file in linux
- Category
- Shell
- Title
- git sync branch with master
- Category
- Shell
- Title
- find out a branch a parent branch git
- Category
- Shell
- Title
- ubuntu ec2 node mongodb connect ECONNREFUSED 127.0.0.1:27017
- Category
- Shell
- Title
- git reset soft
- Category
- Shell
- Title
- git create new branch from current
- Category
- Shell
- Title
- gzip folder with tar
- Category
- Shell
- Title
- install pip3
- Category
- Shell
- Title
- jscore
- Category
- Shell
- Title
- ubuntu logout
- Category
- Shell
- Title
- ubuntu check ssh login log
- Category
- Shell
- Title
- create symbolic link linux
- Category
- Shell
- Title
- store result of command in variable bash
- Category
- Shell
- Title
- fatal: unable to access Could not resolve host wsl
- Category
- Shell
- Title
- fleet management software github
- Category
- Shell
- Title
- instalación de angular cli
- Category
- Shell
- Title
- get git remote url
- Category
- Shell
- Title
- haproxy in centos 7
- Category
- Shell
- Title
- ssh tunnel port
- Category
- Shell
- Title
- how to change permissions on a file in linux
- Category
- Shell
- Title
- ould not change directory to "/root": Permission denied
- Category
- Shell
- Title
- how to install jupyter notebook in windows 10
- Category
- Shell
- Title
- webpack uninstall npm
- Category
- Shell
- Title
- command to find out my git head version
- Category
- Shell
- Title
- pyaudio python 3.7
- Category
- Shell
- Title
- install flutter
- Category
- Shell
- Title
- install docker on ubuntu 18.04
- Category
- Shell
- Title
- cmd delete folder
- Category
- Shell
- Title
- update google chrome command ubuntu
- Category
- Shell
- Title
- ubuntu install opencl
- Category
- Shell
- Title
- install spyder conda
- Category
- Shell
- Title
- git switch branch
- Category
- Shell
- Title
- install redux
- Category
- Shell
- Title
- remove git tag
- Category
- Shell
- Title
- how to install cab file in ubuntu
- Category
- Shell