Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PYTHON not found in PATH - build 3.8 #69

Open
srameshr opened this issue Apr 6, 2020 · 1 comment
Open

PYTHON not found in PATH - build 3.8 #69

srameshr opened this issue Apr 6, 2020 · 1 comment

Comments

@srameshr
Copy link

srameshr commented Apr 6, 2020

Here is my docker file:

FROM jfloff/alpine-python:3.8-onbuild
  
# Build stage
FROM node:lts-alpine as build

RUN apk update; \
  apk add git;
WORKDIR /tmp
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build

# Release stage
FROM node:lts-alpine as release

RUN apk update; \
  apk add git;

VOLUME /parse-server/cloud /parse-server/config

WORKDIR /parse-server

COPY package*.json ./

RUN npm ci --production --ignore-scripts

COPY bin bin
COPY public_html public_html
COPY views views
COPY --from=build /tmp/lib lib
RUN mkdir -p logs && chown -R node: logs

ENV PORT=80
USER node
EXPOSE $PORT

ENTRYPOINT ["node", "./bin/parse-server"]

docker build throws a path error.
PYTHON, PYTHON2, PYTHON3 not found in path

I have copied the entrypoint.sh in the same dir and my requirements.txt is empty as I dont have any package dependencies. 
@tsal
Copy link
Contributor

tsal commented Nov 10, 2020

Your problem is here: FROM node:lts-alpine as release this won't have the alpine-python overlays in the final image.

I notice you're using the "onbuild" image at the top, but don't have any ONBUILD calls in your multi-stage Dockerfile.

I think if you remove that top line and replace this FROM node:lts-alpine as release with FROM jfloff/alpine-python:3.8 as release you might get the desired effect?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants