Skip to content
Merged
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
9 changes: 6 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,22 @@ services:
- mongodb

frontend:
build: ./frontend
build:
context: ./frontend
dockerfile: Dockerfile.dev
ports:
- "3030:80"
- "3030:3001"
depends_on:
- web

widget:
build:
context: ./widget
dockerfile: Dockerfile.dev
args:
- PIRSCH_KEY
ports:
- "3031:80"
- "3031:1234"
depends_on:
- web

Expand Down
17 changes: 17 additions & 0 deletions frontend/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Fetching the latest node image on apline linux
FROM node:14-alpine

# Setting up the work directory
WORKDIR /app

# Installing dependencies
COPY ./package.json ./
COPY ./package-lock.json ./
RUN npm install

# Copying all the files in our project
COPY . .
COPY .env.docker .env

# Building our application
CMD ["npm", "run", "start"]
19 changes: 19 additions & 0 deletions widget/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Fetching the latest node image on apline linux
FROM node:14-alpine

# Declaring env
ARG BASE_TARGET _parent

# Setting up the work directory
WORKDIR /app

# Installing dependencies
COPY ./package.json ./
COPY ./package-lock.json ./
RUN npm install

# Copying all the files in our project
COPY . .

# Building our application
CMD [ "npm", "run", "start" ]