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:
parent
4d6dcf0c9f
commit
d5e98db286
@ -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
|
||||
|
29
Dockerfile
29
Dockerfile
@ -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
|
||||
|
@ -1,6 +1,6 @@
|
||||
version: '3'
|
||||
services:
|
||||
gatsby:
|
||||
dev:
|
||||
build: .
|
||||
command: npm run dev
|
||||
volumes:
|
||||
|
Loading…
Reference in New Issue
Block a user