Skip to content

Latest commit

 

History

History
110 lines (71 loc) · 1.52 KB

dockerfile.md

File metadata and controls

110 lines (71 loc) · 1.52 KB

Example

FROM python:3.9
WORKDIR app
COPY . /app
RUN pip install -r requirements.txt
EXPOSE 8001
CMD ["python","manage.py","runserver","0.0.0.0:8001"]

Example

FROM openjdk:13-jdk-alpine3.10
COPY . /app/bin
ADD /folder /app/folder
ENV PATH "$PATH:/app/bin/sk.jar"
ENV CLASSPATH "$CLASSPATH:/app/bin/sk.jar"
CMD sh

Example

FROM tomcat:9.0-alpine
MAINTAINER SAGAR KUMAR
EXPOSE 8080
ADD project.war /usr/local/tomcat/webapps
CMD["catlina.sh","run"]

Example

FROM tomcat:9.0.71-jre11-temurin-focal
MAINTAINER SAGAR KUMAR
EXPOSE 8080

ADD FoodApp.war /usr/local/tomcat/webapps

CMD ["catalina.sh","run"]

Example

FROM nginx:alpine
LABEL maintainer="Sagar Kumar"
COPY index.html /usr/share/nginx/html
WORKDIR /apps


Example

FROM alpine
LABEL maintainer="SK"
RUN apt update && apt install nginx -y
WORKDIR /apps
COPY ./index.html .
CMD ["service","nginx","start"]

Example

# Base 'image:version'

FROM node:16-alpine3.11

# Expose the utf-server port
EXPOSE 4000

#install ca-certificates

RUN apk update && apk add --no-cache ca-certificates && update-ca-certificates

# Declare default working directory in container; root folder of 'team-a' mongorepo


WORKDIR /app

RUN chown -R node:node services/alpine
COPY package.json .
RUN chown -R node:node package.json
COPY lerna.json
RUN chown -R node:node lerna.json
COPY yarn.lock
RUN chown -R node:node yarn.lock
RUN yarn install-all
RUN yarn build-all
CMD ["yarn", "workspace", "@mern-starter/api","runprod"]