forked from maphubs/maphubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.dev
35 lines (24 loc) · 947 Bytes
/
Dockerfile.dev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM osgeo/gdal:alpine-small-3.0.4 as builder
WORKDIR /app
LABEL maintainer="Kristofor Carle <[email protected]>"
ENV NODE_ENV=development DEBUG="maphubs:*,maphubs-error:*"
RUN apk add --no-cache --upgrade nodejs npm yarn git python make gcc g++ zip postgresql-dev
COPY package.json yarn.lock /app/
RUN npm config set '@bit:registry' https://node.bitsrc.io && \
yarn --production --pure-lockfile && \
yarn global add modclean && \
yarn run modclean
COPY ./src /app/src
COPY ./pages /app/pages
COPY ./.next /app/.next
COPY .babelrc next.config.js server.js server.es6.js docker-entrypoint.sh version.json theme.less /app/
FROM osgeo/gdal:alpine-small-3.0.4
WORKDIR /app
RUN apk add --no-cache --upgrade nodejs libpq
COPY --from=builder /app .
RUN chmod +x /app/docker-entrypoint.sh && \
mkdir -p css && mkdir -p /app/temp/uploads
VOLUME ["/app/temp/uploads"]
VOLUME ["/app/logs"]
EXPOSE 4000
CMD /app/docker-entrypoint.sh