Updated Dockerfile and compose.yaml
Updated Dockerfile to remove USER line, as that prevents proper file mapping writing. Updated compose file to map to /app/data where the database is supposed to be.
This commit is contained in:
parent
4f51b82a93
commit
fab306c393
2 changed files with 2 additions and 6 deletions
|
|
@ -1,5 +1,4 @@
|
||||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
|
||||||
USER $APP_UID
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
|
|
@ -19,7 +18,4 @@ RUN dotnet publish "./FreeTubeSync.csproj" -c $BUILD_CONFIGURATION -o /app/publi
|
||||||
FROM base AS final
|
FROM base AS final
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=publish /app/publish .
|
COPY --from=publish /app/publish .
|
||||||
RUN mkdir data
|
|
||||||
RUN chmod a+rw data
|
|
||||||
VOLUME /app/data
|
|
||||||
ENTRYPOINT ["dotnet", "FreeTubeSync.dll"]
|
ENTRYPOINT ["dotnet", "FreeTubeSync.dll"]
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@
|
||||||
image: freetubesync
|
image: freetubesync
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: FreeTubeSync/Dockerfile
|
dockerfile: Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
volumes:
|
volumes:
|
||||||
- ./docker_data:/data
|
- ./docker_data:/app/data
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue