mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-26 20:01:24 +01:00
26 lines
508 B
Docker
26 lines
508 B
Docker
|
# Dockerfile for local development just installing dependencies.
|
||
|
# Use together with `docker-compose up`
|
||
|
FROM node:alpine
|
||
|
|
||
|
RUN mkdir -p /blog
|
||
|
WORKDIR /blog
|
||
|
COPY package.json .
|
||
|
|
||
|
RUN apk add --no-cache --virtual .build-deps \
|
||
|
g++ \
|
||
|
make \
|
||
|
autoconf \
|
||
|
automake \
|
||
|
libtool \
|
||
|
nasm \
|
||
|
libc6-compat \
|
||
|
libjpeg-turbo-dev \
|
||
|
libpng-dev \
|
||
|
git \
|
||
|
bash \
|
||
|
python \
|
||
|
&& rm -rf /var/cache/apk/* \
|
||
|
&& npm install \
|
||
|
&& npm cache clean --force \
|
||
|
&& apk del .build-deps
|