-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* issue #26: dockerfile * corrections for npm run build * issue #26: dockerfile is working * issue #26: eof * issue #26: markdown linting errros * issue #26: markdown linting errors * issue #26: ran npm run lint * issue #26: fixed merge conflict * issue #26: no tests for now --------- Co-authored-by: JulesB <[email protected]>
- Loading branch information
1 parent
f111496
commit fb71816
Showing
20 changed files
with
206 additions
and
182 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
.github/react-frontend-workflow.yml → ...orkflows/fertiscan-frontend-workflows.yml
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,4 +1,4 @@ | ||
name: React frontend workflows | ||
name: Fertiscan frontend workflows | ||
|
||
on: | ||
pull_request: | ||
|
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
FROM node:20.12.2-alpine AS build | ||
|
||
WORKDIR /code | ||
|
||
# Copy files | ||
COPY ./src ./src | ||
COPY ./public ./public | ||
COPY package.json . | ||
COPY package-lock.json . | ||
COPY tsconfig.json . | ||
COPY tsconfig.node.json . | ||
COPY vite.config.ts . | ||
COPY index.html . | ||
|
||
# Install npm at a specific version, dependencies, build, and run tests | ||
RUN npm install --include=dev | ||
RUN npm run build | ||
|
||
# Setup for production | ||
FROM node:20.12.2-alpine AS runtime | ||
|
||
# Install serve globally | ||
RUN npm install -g serve | ||
|
||
# Set working directory | ||
WORKDIR /app | ||
|
||
# Copy build artifacts from the build stage | ||
COPY --from=build /code/dist /app | ||
|
||
EXPOSE 3000 | ||
|
||
# Serve your app | ||
ENTRYPOINT ["serve", "-s", "/app"] |
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 +0,0 @@ | ||
|
||
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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 |
---|---|---|
|
@@ -64,4 +64,4 @@ input[type="file"] { | |
|
||
.drag-drop-container{ | ||
grid-area: a; | ||
} | ||
} |
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
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 |
---|---|---|
|
@@ -75,4 +75,4 @@ | |
|
||
.cross:after { | ||
transform: translate(-50%, -50%) rotate(-45deg); | ||
} | ||
} |
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
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 |
---|---|---|
|
@@ -56,4 +56,3 @@ | |
.overlay.active { | ||
visibility: visible; /* Show overlay when an image is selected */ | ||
} | ||
|
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
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 |
---|---|---|
|
@@ -29,4 +29,4 @@ | |
.submit-btn{ | ||
margin-top:50px; | ||
grid-area: c; | ||
} | ||
} |
Oops, something went wrong.