This website works better with JavaScript.
Home
Explore
Help
Sign In
aagez
/
nexus-timers
Watch
1
Star
1
Fork
0
Code
Issues
4
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
🔨
: optimizing docker dev image
master
Adrien
4 years ago
parent
63e0cf5879
commit
7201f4a40e
3 changed files
with
9 additions
and
5 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
.dockerignore
+4
-3
Dockerfile
+3
-2
docker-compose.yml
+ 2
- 0
.dockerignore
View File
@@ -1,2 +1,4 @@
node_modules
node_modules
dist
dist
.git
.gitignore
+ 4
- 3
Dockerfile
View File
@@ -1,6 +1,7 @@
FROM node:erbium-alpine
FROM node:erbium-alpine
RUN apk add python2
RUN apk add python2
WORKDIR /app
COPY package.json yarn.lock ./
USER node
WORKDIR /home/node
COPY --chown=node:node package.json yarn.lock ./
RUN yarn
RUN yarn
ENTRYPOINT
yar
n dev
ENTRYPOINT n
ode
build/
dev
-server.js
+ 3
- 2
docker-compose.yml
View File
@@ -1,7 +1,8 @@
dev:
dev:
build: .
build: .
volumes:
volumes:
- .:/app
- /app/node_modules
- .:/home/node
# Prevent node_modules to be mounted
- /home/node/node_modules
ports:
ports:
- 8080:8080
- 8080:8080
Write
Preview
Loading…
Cancel
Save