1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-12-22 09:13:19 +01:00

Docker dev image fixes

This commit is contained in:
Matthias Kretschmann 2019-06-09 21:04:30 +02:00
parent 4d6dcf0c9f
commit d5e98db286
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 33 additions and 14 deletions

View File

@ -1,4 +1,16 @@
node_modules node_modules
.git* npm-debug.log
.cache Dockerfile*
docker-compose*
.dockerignore
.git
.gitignore
README.md
LICENSE
.vscode
public public
.cache
.travis.yml
package-lock.json
README.md
coverage

View File

@ -1,17 +1,24 @@
# Dockerfile for local development just installing dependencies.
# Use together with `docker-compose up`
FROM node:alpine FROM node:alpine
RUN apk update && \
apk add --update --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing \
g++ \
git \
make \
bash \
python \
&& rm -rf /var/cache/apk/*
RUN mkdir -p /portfolio RUN mkdir -p /portfolio
WORKDIR /portfolio WORKDIR /portfolio
COPY package.json . COPY package.json .
RUN npm install && npm cache clean --force RUN apk add --no-cache --virtual .build-deps \
g++ \
make \
autoconf \
automake \
libtool \
nasm \
libc6-compat \
libjpeg-turbo-dev \
libpng-dev \
git \
bash \
&& rm -rf /var/cache/apk/* \
&& npm install \
&& npm cache clean --force \
&& apk del .build-deps

View File

@ -1,6 +1,6 @@
version: '3' version: '3'
services: services:
gatsby: dev:
build: . build: .
command: npm run dev command: npm run dev
volumes: volumes: