forked from saleor/saleor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow using docker for local development and drop node from the build process.
- Loading branch information
Showing
4 changed files
with
7 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,3 @@ | |
*.sqlite | ||
media | ||
node_modules | ||
static |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,11 @@ | ||
FROM python:3.5 | ||
ENV PYTHONUNBUFFERED 1 | ||
|
||
RUN \ | ||
apt-get -y update && \ | ||
apt-get install -y apt-transport-https | ||
|
||
RUN \ | ||
apt-key adv --keyserver keyserver.ubuntu.com --recv 68576280 && \ | ||
echo 'deb https://deb.nodesource.com/node_6.x jessie main' | tee /etc/apt/sources.list.d/nodesource.list && \ | ||
echo 'deb-src https://deb.nodesource.com/node_6.x jessie main' | tee -a /etc/apt/sources.list.d/nodesource.list | ||
|
||
RUN \ | ||
apt-get -y update && \ | ||
apt-get install -y nodejs && \ | ||
apt-get clean | ||
|
||
ADD requirements.txt /app/requirements.txt | ||
RUN cd /app && pip install -r requirements.txt | ||
|
||
ADD package.json /app/package.json | ||
RUN cd /app && npm install | ||
|
||
RUN useradd -ms /bin/bash saleor | ||
|
||
ADD . /app | ||
RUN pip install -r /app/requirements.txt | ||
WORKDIR /app | ||
|
||
ENV PATH $PATH:/app/node_modules/.bin | ||
RUN npm run build-assets | ||
RUN SECRET_KEY=tmpkey python manage.py collectstatic --noinput | ||
|
||
EXPOSE 8000 | ||
ENV PORT 8000 | ||
|
||
ENTRYPOINT ["/app/compose/entrypoint.sh"] | ||
CMD ["uwsgi saleor/wsgi/uwsgi.ini"] | ||
CMD ["uwsgi", "/app/saleor/wsgi/uwsgi.ini"] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters