Skip to content

Commit a22011a

Browse files
authored
Create Dockerfile
1 parent cb92b88 commit a22011a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Dockerfile

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM node:7.5.0
2+
3+
# Create app directory
4+
RUN mkdir -p /usr/src/app
5+
WORKDIR /usr/src/app
6+
7+
# Install app dependencies
8+
COPY . /usr/src/app
9+
#Remove old next build and rebuild all modules
10+
RUN rm -rf /usr/src/app/.next/ && rm -rf /usr/src/app/node_modules && npm install && npm run build
11+
12+
EXPOSE 3000
13+
CMD [ "npm", "start" ]

0 commit comments

Comments
 (0)