What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-05 12:20:03
dockerfile for nodejs
FROM node:10-alpine RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app WORKDIR /home/node/app COPY package*.json ./ USER node RUN npm install COPY --chown=node:node . . EXPOSE 8080 CMD [ "node", "i... Add solution -
Other 2022-02-14 22:45:03
npm docker
FROM node:12 # Create app directory WORKDIR /usr/src/app # Install app dependencies # A wildcard is used to ensure both package.json AND package-lock.json are copied # where available (npm@5+) COPY package*.json ./ RUN npm install # If you are building... Add solution -
Javascript 2022-01-30 22:45:02
how run dockerfile
# Use the official image as a parent image. FROM node:current-slim # Set the working directory. WORKDIR /usr/src/app # Copy the file from your host to your current location. COPY package.json . # Run the command inside your image filesystem. RUN npm in... Add solution -
Shell/Bash 2021-10-28 23:24:19
dockerfile for vuejs
#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 # c... Add solution -
Javascript 2021-10-25 07:18:07
express react docker container example
# Use a lighter version of Node as a parent imageFROM mhart/alpine-node:8.11.4# Set the working directory to /clientWORKDIR /client# copy package.json into the container at /clientCOPY package*.json /client/# install dependenciesRUN npm install# Copy the ... Add solution -
Python 2021-10-16 13:45:03
python setup.py install
# This to install it via pip python -m pip install --upgrade setuptools # Here is what setup.py might look like: import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name=&quo... Add solution -
Python 2021-09-30 06:21:02
python statistics
# Probably the most convenient set of statistics functions are found # in the Numpy package # Basic syntax: import numpy as np np.mean(your_list) # Calculate mean np.median() # Calculate median np.std() # Calculate standard deviation np.var() # Calculate... Add solution -
Shell/Bash 2021-09-24 15:17:04
dockerfile for NGINX vuejs
#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 # c... Add solution