mirror of
https://github.com/bitinflow/server.git
synced 2026-10-31 20:59:08 +00:00
update Dockerfile to node 9.2.1
This commit is contained in:
1 parent
ddad1851fc
commit
55a7f8eeb6
1 file changed
+5
-6
+5
-6
@@ -1,14 +1,13 @@
|
||||
FROM mhart/alpine-node:6.3.0
|
||||
FROM node:9.2.1-alpine
|
||||
|
||||
RUN mkdir -p /app
|
||||
WORKDIR /app
|
||||
|
||||
ADD package.json /app/
|
||||
COPY package.json /app/
|
||||
COPY yarn.lock /app/
|
||||
|
||||
RUN npm install --production && \
|
||||
rm -rf /tmp/* /root/.npm /root/.node-gyp
|
||||
RUN yarn install --production && yarn cache clean
|
||||
|
||||
ADD . /app
|
||||
COPY . /app
|
||||
|
||||
ENV NODE_ENV production
|
||||
ENTRYPOINT ["bin/server"]
|
||||
Reference in new issue
Block a user