dockerfile for 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
- install apache ubuntu
- Category
- Shell
- Title
- check changes after git pull
- Category
- Shell
- Title
- save android studio home bash_profile
- Category
- Shell
- Title
- git cherry pick commit
- Category
- Shell
- Title
- git add all files command
- Category
- Shell
- Title
- installing react router dom with yarn
- Category
- Shell
- Title
- bash function
- Category
- Shell
- Title
- linux check timezone
- Category
- Shell
- Title
- how to use curl command in ubuntu
- Category
- Shell
- Title
- git reset hard
- Category
- Shell
- Title
- ip address ubuntu
- Category
- Shell
- Title
- How to find your ip on debian linux wsl
- Category
- Shell
- Title
- install ip addr on ubuntu
- Category
- Shell
- Title
- list all services using systemctl
- Category
- Shell
- Title
- bash generate random number between
- Category
- Shell
- Title
- create directory linux
- Category
- Shell
- Title
- github show files changed git log
- Category
- Shell
- Title
- rename file linux
- Category
- Shell
- Title
- git revert merge
- Category
- Shell
- Title
- remove debian gnu/linux - continue with install process
- Category
- Shell
- Title
- fingerprint login disabled ubuntu 20.04
- Category
- Shell
- Title
- dockerfile for vuejs
- Category
- Shell
- Title
- how to fix libffi missing in macos
- Category
- Shell
- Title
- git list remote branches
- Category
- Shell
- Title
- list directories recursively powershell
- Category
- Shell
- Title
- get current branch name git
- Category
- Shell
- Title
- how to kill a process in linux
- Category
- Shell
- Title
- laravel generate mailable
- Category
- Shell
- Title
- git reset specific file
- Category
- Shell
- Title
- how to revert to previous kernel ubuntu
- Category
- Shell
- Title
- check vm ram details in linux
- Category
- Shell
- Title
- why all git pull create merge commit
- Category
- Shell
- Title
- Could not install Visual Studio Build Tools.
- Category
- Shell
- Title
- ubuntu install composer
- Category
- Shell
- Title
- install metasploit in kali linux
- Category
- Shell
- Title
- vagrant 16
- Category
- Shell
- Title
- how to download youtube video in linux
- Category
- Shell
- Title
- .gitignore not working
- Category
- Shell
- Title
- pip command not found macos
- Category
- Shell
- Title
- ubuntu add user to group
- Category
- Shell
- Title
- restore deleted branch git
- Category
- Shell
- Title
- install node js ubuntu
- Category
- Shell
- Title
- git ignore node_modules
- Category
- Shell
- Title
- ubuntu 18.04 get public ip address
- Category
- Shell
- Title
- how to grep if the first letter is a character not a number
- Category
- Shell
- Title
- linux shell loop through all inputs except last
- Category
- Shell
- Title
- powershell map array
- Category
- Shell
- Title
- remotelog muirey03 github
- Category
- Shell
- Title
- setup mysql ubuntu
- Category
- Shell
- Title
- terminal line break mac
- Category
- Shell
- Title
- install bootstrap angular
- Category
- Shell
- Title
- install docker debain
- Category
- Shell
- Title
- bash linux scripting laguage
- Category
- Shell
- Title
- Shell query displays all citizens with an age greater than or equal to 21
- Category
- Shell
- Title
- how to disconnect local repo from remote master
- Category
- Shell
- Title
- remove a file from git commit
- Category
- Shell
- Title
- BDD framework in testcomplete github
- Category
- Shell
- Title
- connect to windows 10 remote desktop from ubuntu
- Category
- Shell
- Title
- codepush get keys
- Category
- Shell
- Title
- install docker on ubuntu 18.04
- Category
- Shell
- Title
- ubuntu bluetooth not listed
- Category
- Shell
- Title
- bash: zipalign: command not found
- Category
- Shell
- Title
- download images from url terminal
- Category
- Shell
- Title
- how to get ssh access to a computer
- Category
- Shell
- Title
- npm ERR! path /usr/local/lib/nodejs/node-v10.15.3-linux-x64/lib/node_modules while installing angular cli
- Category
- Shell
- Title
- create next js app
- Category
- Shell
- Title
- delete local branch git
- Category
- Shell
- Title
- create github repo with bash
- Category
- Shell
- Title
- how to install new gatsby project locally
- Category
- Shell
- Title
- grep and
- Category
- Shell
- Title
- mostrare i grafici matplotlib sulla shell python
- Category
- Shell
- Title
- how to install docker ubuntu
- Category
- Shell
- Title
- debian 10 buster mysql
- Category
- Shell
- Title
- julia install linux
- Category
- Shell
- Title
- how to update git on windows
- Category
- Shell
- Title
- vieuw the MOTD linux
- Category
- Shell
- Title
- install git
- Category
- Shell
- Title
- change user linux
- Category
- Shell
- Title
- ubuntu dns server
- Category
- Shell
- Title
- git push pull asks for login everytime
- Category
- Shell
- Title
- force pull github
- Category
- Shell
- Title
- git bash anaconda
- Category
- Shell
- Title
- particular screenshot in ubuntu
- Category
- Shell
- Title
- git global username --replace-all
- Category
- Shell
- Title
- laravel lumen
- Category
- Shell
- Title
- intel pinning threads
- Category
- Shell
- Title
- bash case statement
- Category
- Shell
- Title
- i dont have pip, hoow to install pandas
- Category
- Shell
- Title
- install spyder conda
- Category
- Shell
- Title
- netstat check port
- Category
- Shell
- Title
- batch rename files
- Category
- Shell
- Title
- git remove tag from remote
- Category
- Shell
- Title
- bash echo to stderr
- Category
- Shell
- Title
- apache virtual host
- Category
- Shell
- Title
- install bootstrap in laravel
- Category
- Shell
- Title
- install webpack
- Category
- Shell
- Title
- fish shell script parent directory multiple dots
- Category
- Shell
- Title
- How to download Citrix Workspace for Ubuntu
- Category
- Shell
- Title
- how to install pip in anaconda
- Category
- Shell
- Title
- optional argument bash
- Category
- Shell