Skip to content

Commit

Permalink
improve docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
lenscas committed Oct 20, 2023
1 parent c9c1593 commit 759d4ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
FROM node:16-alpine3.12
FROM node:18-alpine

WORKDIR /home/app

RUN apk add yarn
RUN apk add python3 make

RUN echo "test"

COPY package.json /home/app/
COPY yarn.lock /home/app/

RUN rm -rf node_modules

RUN yarn install

COPY . /home/app
Expand Down
9 changes: 4 additions & 5 deletions docker-compose.override.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# docker-compose.override.yml
version: "3"
version: '3'
services:
app:
volumes:
- .:/home/app/
- /home/app/node_modules
app:
volumes:
- .:/home/app/

0 comments on commit 759d4ba

Please sign in to comment.