-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from COS301-SE-2024/feat/frontend/containerizi…
…ng-and-ci/cd-landing-page Feat/frontend/containerizing and ci/cd landing page
- Loading branch information
Showing
6 changed files
with
4,819 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}, | ||
}; | ||
|
Oops, something went wrong.