Skip to content
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
23 changes: 23 additions & 0 deletions Dockerfile.pizza-time-frontend
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM node:16-alpine

# Create app directory
WORKDIR /usr/src/app

# Install app dependencies
COPY package*.json ./
RUN npm install

# Bundle app source
COPY . .

# Build the app
RUN npm run build

# Install serve to serve static files from 'build' directory
RUN npm install -g serve

# Application will run on port 3000
EXPOSE 3000

# Start the application
CMD ["serve", "-s", "build", "-l", "3000"]
2 changes: 2 additions & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
REPO pizza
LOAD monk.yaml
28 changes: 28 additions & 0 deletions monk.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
namespace: pizza

pizza-time-frontend:
defines: runnable
metadata:
name: pizza-time-frontend
description: React-based frontend for the Pizza Time e-commerce platform.
icon: https://emojiapi.dev/api/v1/robot.svg
containers:
pizza-time-frontend:
image: env-1965.registry.local/pizza-time-frontend:main-4fd69e3
build: .
dockerfile: Dockerfile.pizza-time-frontend
services:
http-server:
description: HTTP server listening port
container: pizza-time-frontend
port: 3000
host-port: 3000
publish: true
protocol: tcp
connections: {}
variables: {}

stack:
defines: group
members:
- pizza/pizza-time-frontend