Skip to content

Commit

Permalink
Optimize docker build and update package
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauvino committed Oct 26, 2023
1 parent 0a65222 commit e4602f9
Show file tree
Hide file tree
Showing 6 changed files with 797 additions and 739 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# ass Dockerfile v0.3.2
# ass Dockerfile v0.3.3
# authors:
# - tycrek <[email protected]> (https://tycrek.com/)
# - Zusier <[email protected]> (https://github.com/Zusier)

FROM node:20.8.0
FROM node:20.9.0-alpine
WORKDIR /opt/ass-src/
COPY . ./
RUN npm i --save-dev && npm run build
CMD npm start
RUN rm -rf /var/cache/apk/*
2 changes: 1 addition & 1 deletion backend/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@tsconfig/node18/tsconfig.json",
"extends": "@tsconfig/node20/tsconfig.json",
"compilerOptions": {
"outDir": "../dist-backend",
"strictPropertyInitialization": false
Expand Down
7 changes: 7 additions & 0 deletions dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.github
.gitignore
.dockerignore
.install
Dockerfile
compose.yaml
node_modules/
2 changes: 1 addition & 1 deletion frontend/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@tsconfig/node18/tsconfig.json",
"extends": "@tsconfig/node20/tsconfig.json",
"compilerOptions": {
"outDir": "../dist-frontend",
"lib": [
Expand Down
Loading

0 comments on commit e4602f9

Please sign in to comment.