Skip to content

Commit

Permalink
Merge pull request #34 from NucleoidJS/update-dockerfile
Browse files Browse the repository at this point in the history
Update dockerfile
  • Loading branch information
canmingir authored Jan 22, 2024
2 parents 7d77ed5 + 366b69b commit 6aff7d8
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/coverage

# production
/build
/dist

# misc
.DS_Store
Expand Down
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/build
/dist
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
FROM node:16
FROM node:18

COPY build /app
WORKDIR /app

EXPOSE 80
COPY dist dist
COPY config.js config.mjs

ENTRYPOINT npx -y serve -n -p 80 /app
EXPOSE 3000

ENTRYPOINT npx http-server-deneme start
5 changes: 5 additions & 0 deletions config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const config = {
name: "nucleoid.com",
};

export default config;
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "nucleoid",
"version": "1.0.0",
"private": true,
"type":"module",
"scripts": {
"prepare": "node prepare.js",
"dev": "vite",
Expand Down
File renamed without changes.

0 comments on commit 6aff7d8

Please sign in to comment.