Skip to content

Commit

Permalink
Merge pull request #61 from gonzalezzfelipe/chore/dockerize
Browse files Browse the repository at this point in the history
chore: Dockerize
  • Loading branch information
Quantumplation authored Nov 14, 2024
2 parents 8593666 + 8cd892f commit 79fe946
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Include any files or directories that you don't want to be copied to your
# container here (e.g., local build artifacts, temporary files, etc.).
#
# For more help, visit the .dockerignore file reference guide at
# https://docs.docker.com/engine/reference/builder/#dockerignore-file

**/.classpath
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/.next
**/.cache
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/charts
**/docker-compose*
**/compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
**/build
**/dist
LICENSE
README.md
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ARG NODE_VERSION=20
FROM node:${NODE_VERSION}-alpine

RUN apk add openssl-dev
WORKDIR /usr/app
COPY . .
RUN yarn install
RUN npm install -g vite

EXPOSE 3000
CMD yarn start
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite",
"start": "vite",
"start": "vite --host",
"build": "tsc -b && vite build",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
Expand Down

0 comments on commit 79fe946

Please sign in to comment.