fix: copy public folder to production docker image stage to serve APK downloads
This commit is contained in:
@@ -33,6 +33,7 @@ COPY package*.json ./
|
|||||||
COPY --from=build /usr/src/app/node_modules ./node_modules
|
COPY --from=build /usr/src/app/node_modules ./node_modules
|
||||||
COPY --from=build /usr/src/app/dist ./dist
|
COPY --from=build /usr/src/app/dist ./dist
|
||||||
COPY --from=build /usr/src/app/prisma ./prisma
|
COPY --from=build /usr/src/app/prisma ./prisma
|
||||||
|
COPY --from=build /usr/src/app/public ./public
|
||||||
|
|
||||||
EXPOSE 3001
|
EXPOSE 3001
|
||||||
CMD ["node", "dist/src/main.js"]
|
CMD ["node", "dist/src/main.js"]
|
||||||
|
|||||||
Binary file not shown.
@@ -445,7 +445,6 @@ export const LandingPage: React.FC<LandingPageProps> = ({
|
|||||||
|
|
||||||
// 3. Tải ảnh lên
|
// 3. Tải ảnh lên
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
formData.append('images', pendingPhotoFile);
|
|
||||||
if (pendingPhotoLocation) {
|
if (pendingPhotoLocation) {
|
||||||
formData.append('latitude', pendingPhotoLocation.latitude.toString());
|
formData.append('latitude', pendingPhotoLocation.latitude.toString());
|
||||||
formData.append('longitude', pendingPhotoLocation.longitude.toString());
|
formData.append('longitude', pendingPhotoLocation.longitude.toString());
|
||||||
@@ -454,6 +453,7 @@ export const LandingPage: React.FC<LandingPageProps> = ({
|
|||||||
if (selectedTags.length > 0) {
|
if (selectedTags.length > 0) {
|
||||||
formData.append('tags', JSON.stringify(selectedTags));
|
formData.append('tags', JSON.stringify(selectedTags));
|
||||||
}
|
}
|
||||||
|
formData.append('images', pendingPhotoFile);
|
||||||
|
|
||||||
let uploadRes = await fetch('/api/v1/photos/upload-anonymous', {
|
let uploadRes = await fetch('/api/v1/photos/upload-anonymous', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|||||||
Reference in New Issue
Block a user