Dockerfile.development 330 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM node:13.8

WORKDIR /app

# Copy dependency list
ADD ./package.json /app/
ADD ./package-lock.json /app/

# Install dependencies
RUN npm install -g gatsby-cli
RUN npm install

# Clean up app directory
RUN rm /app/package.json /app/package-lock.json

VOLUME [ "/app" ]
EXPOSE 8000

CMD [ "gatsby", "develop", "--host=0.0.0.0" ]