Skip to content
Snippets Groups Projects
Commit 790bee32 authored by Trygve Jørgensen's avatar Trygve Jørgensen
Browse files

Merge branch 'dockerize' into 'dev'

feat: dockerized application

See merge request !2
parents c632dadf 3b9ae459
No related branches found
No related tags found
Loading
Pipeline #272469 failed
# Dependency directories
/node_modules
# Distribution directories
/dist
/build
# Environment files
.env.*
# Editor directories and files
.vscode
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
# Cache directories
/.cache
# Test directories
/coverage
/cypress/videos/
/cypress/screenshots/
# Temporary files
*.temp
# System files
.DS_Store
Thumbs.db
\ No newline at end of file
FROM node:21.5.0
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 5173
CMD [ "npm", "run", "dev" ]
\ No newline at end of file
.PHONY: build run
build:
docker build -t sparesti_frontend .
run:
docker run -p 5173:5173 sparesti_frontend
\ No newline at end of file
...@@ -12,5 +12,8 @@ export default defineConfig({ ...@@ -12,5 +12,8 @@ export default defineConfig({
alias: { alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)) '@': fileURLToPath(new URL('./src', import.meta.url))
} }
},
server: {
host: '0.0.0.0'
} }
}) })
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment