-
Notifications
You must be signed in to change notification settings - Fork 758
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
Docker not working on Fedora 31 #67
Comments
Looks like the
|
So yeah the problem is with the custom user. If I remove it all then it works fine. --- a/.docker/resume.dockerfile
+++ b/.docker/resume.dockerfile
@@ -1,11 +1,5 @@
FROM ubuntu
-# prepare a user which runs everything locally! - required in child images!
-RUN useradd --user-group --create-home --shell /bin/false app
-
-ENV HOME=/home/app
-WORKDIR $HOME
-
RUN apt-get update && \
apt-get install -y \
build-essential \
@@ -23,11 +17,9 @@ ENV APP_NAME=resume
# before switching to user we need to set permission properly
# copy all files, except the ignored files from .dockerignore
-COPY . $HOME/$APP_NAME/
-COPY ./Makefile $HOME/$APP_NAME/
-RUN chown -R app:app $HOME/*
+COPY . $APP_NAME/
+COPY ./Makefile $APP_NAME/
-USER app
-WORKDIR $HOME/$APP_NAME
+WORKDIR $APP_NAME
RUN make clean |
Since it works in |
I've made some changes to the dockerfile and docker-compose.yml, and tested locally with podman-compose. It should all work now. |
Trying to build using Docker on Fedora 31. I have to use
podman
as Docker is no longer supported on Fedora. It's supposed to have the exact same cli but for some reason that doesn't seem to work.Looks like the image is properly generated but it doesn't find the
Makefile
.Here are the full logs:
The text was updated successfully, but these errors were encountered: