mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-27 14:39:51 -08:00
🐳 move Dockerfile to base node:alpine image
reduces size from about 1.08GB to 345MB (still not great but hey)
This commit is contained in:
parent
66d991bd05
commit
b15b44e290
10
dockerfile
10
dockerfile
|
@ -1,10 +1,10 @@
|
||||||
FROM node:14
|
FROM node:16.4.2-alpine3.14
|
||||||
|
#
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm install
|
RUN yarn
|
||||||
RUN npm run build
|
RUN yarn build
|
||||||
|
#
|
||||||
EXPOSE 3001
|
EXPOSE 3001
|
||||||
VOLUME ["/app/data"]
|
VOLUME ["/app/data"]
|
||||||
CMD ["npm", "run", "start-server"]
|
CMD ["npm", "run", "start-server"]
|
||||||
|
|
Loading…
Reference in a new issue