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
.git*
.cache
npm-debug.log
Dockerfile*
docker-compose*
.dockerignore
.git
.gitignore
README.md
LICENSE
.vscode
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
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
WORKDIR /portfolio
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'
services:
gatsby:
dev:
build: .
command: npm run dev
volumes: