Skip to content

Commit

Permalink
Merge pull request #76 from COS301-SE-2024/feat/frontend/containerizi…
Browse files Browse the repository at this point in the history
…ng-and-ci/cd-landing-page

Feat/frontend/containerizing and ci/cd landing page
  • Loading branch information
waveyboym authored Jun 20, 2024
2 parents c042f22 + a634a4c commit 1e3420d
Show file tree
Hide file tree
Showing 6 changed files with 4,819 additions and 20 deletions.
2 changes: 1 addition & 1 deletion documentation/occupi-docs/pages/api-documentation.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Api Documentation Introduction

This is the Introduction for the api
This is the Introduction for occupi's api endpoints
24 changes: 11 additions & 13 deletions frontend/occupi/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
# Use the official bun image as a base
FROM oven/bun:latest
# Use an official Node.js runtime as a parent image
FROM node:20-alpine

# Set the current working directory inside the container
# Set the working directory
WORKDIR /app

# copy bun.lockb package.json
COPY bun.lockb package.json ./
# Copy the package.json and package-lock.json and install dependencies
COPY package.json package-lock.json ./
RUN npm install

# install dependencies
RUN bun install

# copy the source code into the container
# Copy the rest of the application code
COPY . .

# Build the next.js application
RUN bun run build
# Build the Next.js application
RUN npm run build

# Expose the port the app runs on
EXPOSE 5000

# Command to run the executable
CMD ["bun", "start"]
# Start the application
CMD ["npm", "start"]
Binary file removed frontend/occupi/bun.lockb
Binary file not shown.
11 changes: 7 additions & 4 deletions frontend/occupi/next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
}

module.exports = nextConfig
// next.config.js
module.exports = {
images: {
unoptimized: true,
},
};

Loading

0 comments on commit 1e3420d

Please sign in to comment.