Skip to content
This repository has been archived by the owner on Sep 8, 2021. It is now read-only.

react-redux-realworld-example-app with Docker #181

Open
wants to merge 1 commit into
base: react-redux
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@


FROM node:13.0-alpine

RUN mkdir /app
WORKDIR /app

COPY package.json package.json

RUN npm install
RUN npm install -g yarn
RUN npm install --save-dev @babel/core
RUN npm install --save-dev babel-polyfill
RUN npm install --save-dev babel-preset-es2015
RUN npm install -g babel-cli
RUN yarn add @babel/plugin-transform-shorthand-properties --dev
COPY . .

LABEL maintainer="sohag Samajpati<[email protected]>"

CMD ["npm", "start"]




8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: "3"
services:
web:
build: .
ports:
- '4100:4100'
volumes:
- '.:/app'