Skip to content

Commit

Permalink
Merge pull request #25 from Andes-hosting/Victor-development
Browse files Browse the repository at this point in the history
Changing the image from a development deployment to a production
  • Loading branch information
Jiroma committed Mar 11, 2024
2 parents 9252d07 + c664929 commit 47d08fb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.github
.dockerignore
dockerfile
docker-compose.yml
LICENSE
README.md
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ services:
context: .
dockerfile: dockerfile
ports:
- 3000:3000
- 80:80

# docker compose up -d --build
14 changes: 7 additions & 7 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM node:hydrogen-alpine

WORKDIR /andes-website/
COPY website-andes-hosting/public/ /andes-website/public
COPY website-andes-hosting/src/ /andes-website/src
COPY website-andes-hosting/package.json /andes-website/
FROM node:hydrogen-alpine AS react-build

WORKDIR /andes-website
COPY website-andes-hosting/package.json .
RUN npm install
COPY website-andes-hosting/ .
RUN npm run build

CMD ["npm", "start"]
FROM nginx:alpine
COPY --from=react-build /andes-website/build /usr/share/nginx/html

0 comments on commit 47d08fb

Please sign in to comment.