Skip to content

Commit

Permalink
Fix issue with Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Jan 25, 2024
1 parent 34d89bf commit 288ffca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ yarn-error.log*

.env
docker/data/
dist/

# Editor directories and files
.idea
Expand Down
5 changes: 3 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ RUN apk add --no-cache gawk

# Copy and install dependencies
COPY package*.json ./
RUN npm ci --omit=dev
RUN npm ci

# Bundle app source
COPY . .

RUN mkdir /config
# Build static front end
RUN npm run build

# Use pm2 to run app
RUN npm i -g pm2
Expand Down

0 comments on commit 288ffca

Please sign in to comment.